diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-12-12 01:49:54 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-07 03:49:51 -0500 |
commit | 66c5e5927860159e58bb6d8ebe7ac886277d617b (patch) | |
tree | 00d44bb96a09e47e245749753a33115ae3735093 /drivers/staging | |
parent | 7f95c904b9d7a42c96893fddd48b7615f549c5ff (diff) |
[media] radio-bcm2048: fix missing unlock on error in bcm2048_rds_fifo_receive()
Add the missing unlock before return from function bcm2048_rds_fifo_receive()
in the error handling case.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/bcm2048/radio-bcm2048.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c index 494ec3916ef5..37ff89931ebc 100644 --- a/drivers/staging/media/bcm2048/radio-bcm2048.c +++ b/drivers/staging/media/bcm2048/radio-bcm2048.c | |||
@@ -1767,6 +1767,7 @@ static void bcm2048_rds_fifo_receive(struct bcm2048_device *bdev) | |||
1767 | bdev->rds_info.radio_text, bdev->fifo_size); | 1767 | bdev->rds_info.radio_text, bdev->fifo_size); |
1768 | if (err != 2) { | 1768 | if (err != 2) { |
1769 | dev_err(&bdev->client->dev, "RDS Read problem\n"); | 1769 | dev_err(&bdev->client->dev, "RDS Read problem\n"); |
1770 | mutex_unlock(&bdev->mutex); | ||
1770 | return; | 1771 | return; |
1771 | } | 1772 | } |
1772 | 1773 | ||