summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-core
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-28 21:36:14 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-28 21:36:14 +0300
commit122d0e8dd050cc5dc3fb9e9b5f2dee3c5276ce35 (patch)
treece81fdb02e5dce0a150cd86af53a53c5d987870c /drivers/media/dvb-core
parentded716267196862809e5926072adc962a611a1e3 (diff)
downloadlinux-122d0e8dd050cc5dc3fb9e9b5f2dee3c5276ce35.tar.xz
media: dvbdev: remove double-unlock
As warned by smatch: drivers/media/dvb-core/dvbdev.c: drivers/media/dvb-core/dvbdev.c:529 dvb_register_device() error: double unlock 'sem:&minor_rwsem' Reported-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r--drivers/media/dvb-core/dvbdev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c
index 4a5834a1c3b7..a3393cd4e584 100644
--- a/drivers/media/dvb-core/dvbdev.c
+++ b/drivers/media/dvb-core/dvbdev.c
@@ -526,7 +526,6 @@ int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,
dvb_media_device_free(dvbdev);
kfree(dvbdevfops);
kfree(dvbdev);
- up_write(&minor_rwsem);
mutex_unlock(&dvbdev_register_lock);
return ret;
}