]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
0017-edt-mutex-unlock-bugfix
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 12:21:58 +0000 (14:21 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 29 Oct 2013 11:54:14 +0000 (12:54 +0100)
===================================================================

drivers/input/touchscreen/edt-ft5x06.c

index 632e6d45bac2ab82e5ba81f1e585703532eaf5d7..6d4a32912f739f9a7fb257724d88997cc6471096 100644 (file)
@@ -583,9 +583,10 @@ static int edt_ft5x06_i2c_ts_probe(struct i2c_client *client,
 
        tsdata->factory_mode = 0;
 
-       if (edt_ft5x06_ts_readwrite(client, 1, "\xbb", 22, rdbuf) < 0) {
+       error = edt_ft5x06_ts_readwrite(client, 1, "\xbb", 22, rdbuf);
+       if (error < 0) {
                dev_err(&client->dev, "probing failed\n");
-               error = -ENODEV;
+               mutex_unlock(&tsdata->mutex);
                goto err_free_irq_pin;
        }