Title: [9101] trunk/drivers/input/touchscreen/ad7160.c: [#6066] AD7160 Linux Driver Support: Unlock mutex on error return
Revision
9101
Author
hennerich
Date
2010-08-25 11:58:09 -0400 (Wed, 25 Aug 2010)

Log Message

[#6066] AD7160 Linux Driver Support: Unlock mutex on error return

Modified Paths

Diff

Modified: trunk/drivers/input/touchscreen/ad7160.c (9100 => 9101)


--- trunk/drivers/input/touchscreen/ad7160.c	2010-08-25 15:51:50 UTC (rev 9100)
+++ trunk/drivers/input/touchscreen/ad7160.c	2010-08-25 15:58:09 UTC (rev 9101)
@@ -784,6 +784,7 @@
 
 	ret = ad7160_enter_boot_mode(ts);
 	if (ret < 0) {
+		mutex_unlock(&ts->mutex);
 		dev_err(dev, "failed to enter boot mode\n");
 		return ret;
 	}
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to