diff mbox

radio-rtrack2: fix double mutex_unlock

Message ID 1236672840.11988.48.camel@tux.localhost (mailing list archive)
State Accepted
Headers show

Commit Message

Alexey Klimov March 10, 2009, 8:14 a.m. UTC
Patch fixes double mutex unlocking.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>

--
diff mbox

Patch

diff -r 615fb8f01610 linux/drivers/media/radio/radio-rtrack2.c
--- a/linux/drivers/media/radio/radio-rtrack2.c	Tue Mar 10 02:33:02 2009 -0300
+++ b/linux/drivers/media/radio/radio-rtrack2.c	Tue Mar 10 09:28:27 2009 +0300
@@ -60,7 +60,6 @@ 
 		return;
 	mutex_lock(&dev->lock);
 	outb(1, dev->io);
-	mutex_unlock(&dev->lock);
 	mutex_unlock(&dev->lock);
 	dev->muted = 1;
 }