]> Pileus Git - ~andy/linux/commitdiff
[media] tm6000: Fix mutex unbalance
authorDmitri Belimov <d.belimov@gmail.com>
Wed, 29 Dec 2010 00:49:07 +0000 (21:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:17:21 +0000 (08:17 -0200)
Hi

Fix never unlocked mutex. No more crash after removing USB stick.

With my best regards, Dmitry.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-core.c

index 8c897d79ce7a3283d53d0fd68f50b9cbcaac5f02..96aed4ace46739e3b76aac54c299974bde44877a 100644 (file)
@@ -722,5 +722,5 @@ void tm6000_close_extension(struct tm6000_core *dev)
                                ops->fini(dev);
                }
        }
-       mutex_lock(&tm6000_devlist_mutex);
+       mutex_unlock(&tm6000_devlist_mutex);
 }