[media] radio-bcm2048: fix missing unlock on error in bcm2048_rds_fifo_receive()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 12 Dec 2013 06:49:54 +0000 (03:49 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 08:49:51 +0000 (06:49 -0200)
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>
drivers/staging/media/bcm2048/radio-bcm2048.c

index 494ec3916ef544ae031911fdde66c128b13139ca..37ff89931ebc6fd43d98997bc851ca6d8ac1f0a8 100644 (file)
@@ -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;
        }