[patch] hwmon/amc6821: double unlock bug

From: Dan Carpenter
Date: Thu Jan 14 2010 - 05:30:42 EST


The mutex gets unlocked after we goto EXIT.

Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>

--- orig/drivers/hwmon/amc6821.c 2010-01-14 13:22:23.000000000 +0300
+++ devel/drivers/hwmon/amc6821.c 2010-01-14 13:22:30.000000000 +0300
@@ -686,7 +686,6 @@ static ssize_t set_fan1_div(
data->fan1_div = 4;
break;
default:
- mutex_unlock(&data->update_lock);
count = -EINVAL;
goto EXIT;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/