diff options
author | Douglas Schilling Landgraf <dougsland@redhat.com> | 2009-07-05 15:44:20 -0300 |
---|---|---|
committer | Douglas Schilling Landgraf <dougsland@redhat.com> | 2009-07-05 15:44:20 -0300 |
commit | 0082053685c27f18e24c1d3e564bb43f51fc28f4 (patch) | |
tree | 56ada584352c77bd6ea6b0947d7de442a8041cc7 /linux/drivers/media/radio | |
parent | 86ef69f11da81856aff2e001226cc47cafacb68b (diff) | |
download | mediapointer-dvb-s2-0082053685c27f18e24c1d3e564bb43f51fc28f4.tar.gz mediapointer-dvb-s2-0082053685c27f18e24c1d3e564bb43f51fc28f4.tar.bz2 |
radio-si470x: fix lock imbalance
From: Jiri Slaby <jirislaby@gmail.com>
There is one path with omitted unlock in si470x_fops_release. Fix that.
Priority: normal
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
CC: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Diffstat (limited to 'linux/drivers/media/radio')
-rw-r--r-- | linux/drivers/media/radio/radio-si470x.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drivers/media/radio/radio-si470x.c b/linux/drivers/media/radio/radio-si470x.c index de4673b3a..20aa447cc 100644 --- a/linux/drivers/media/radio/radio-si470x.c +++ b/linux/drivers/media/radio/radio-si470x.c @@ -1206,7 +1206,7 @@ static int si470x_fops_release(struct file *file) kfree(radio->int_in_buffer); kfree(radio->buffer); kfree(radio); - goto done; + goto unlock; } /* cancel read processes */ @@ -1216,9 +1216,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; } |