mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH repost 1/4] V4L: radio-si470x, fix lock imbalance
@ 2009-07-03 20:51 Jiri Slaby
  2009-07-03 20:51 ` [PATCH repost 2/4] V4L: em28xx, " Jiri Slaby
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jiri Slaby @ 2009-07-03 20:51 UTC (permalink / raw)
  To: mchehab; +Cc: linux-media, akpm, linux-kernel, Jiri Slaby

There is one path with omitted unlock in si470x_fops_release. Fix that.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
 drivers/media/radio/radio-si470x.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/media/radio/radio-si470x.c b/drivers/media/radio/radio-si470x.c
index 640421c..46d2163 100644
--- a/drivers/media/radio/radio-si470x.c
+++ b/drivers/media/radio/radio-si470x.c
@@ -1200,7 +1200,7 @@ static int si470x_fops_release(struct file *file)
 			video_unregister_device(radio->videodev);
 			kfree(radio->buffer);
 			kfree(radio);
-			goto done;
+			goto unlock;
 		}
 
 		/* stop rds reception */
@@ -1213,9 +1213,8 @@ static int si470x_fops_release(struct file *file)
 		retval = si470x_stop(radio);
 		usb_autopm_put_interface(radio->intf);
 	}
-
+unlock:
 	mutex_unlock(&radio->disconnect_lock);
-
 done:
 	return retval;
 }
-- 
1.6.3.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-03 20:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-03 20:51 [PATCH repost 1/4] V4L: radio-si470x, fix lock imbalance Jiri Slaby
2009-07-03 20:51 ` [PATCH repost 2/4] V4L: em28xx, " Jiri Slaby
2009-07-03 20:51 ` [PATCH repost 3/4] V4L: hdpvr, fix lock imbalances Jiri Slaby
2009-07-03 20:51 ` [PATCH repost 4/4] V4L: saa7134, fix lock imbalance Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome