[media] dvb-core: Release semaphore on error path dvb_register_device()
authorSantosh Nayak <santoshprasadnayak@gmail.com>
Sat, 23 Jun 2012 10:59:54 +0000 (07:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 22:36:27 +0000 (19:36 -0300)
commit82163edcdfa4eb3d74516cc8e9f38dd3d039b67d
treeb05077c286a905b7e31d9c6192c7ebb4f2ef460d
parentf676fa068819357f716953920b764554fe116b3c
[media] dvb-core: Release semaphore on error path dvb_register_device()

There is a missing "up_write()" here. Semaphore should be released
before returning error value.

Cc: stable@kernel.org
Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvbdev.c