diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-12-12 07:49:54 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-07 09:49:51 +0100 |
commit | 66c5e5927860159e58bb6d8ebe7ac886277d617b (patch) | |
tree | 00d44bb96a09e47e245749753a33115ae3735093 /drivers | |
parent | [media] adv7842: add drive strength enum and sync names with adv7604 (diff) | |
download | linux-66c5e5927860159e58bb6d8ebe7ac886277d617b.tar.xz linux-66c5e5927860159e58bb6d8ebe7ac886277d617b.zip |
[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')
-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) bdev->rds_info.radio_text, bdev->fifo_size); if (err != 2) { dev_err(&bdev->client->dev, "RDS Read problem\n"); + mutex_unlock(&bdev->mutex); return; } |