linux/drivers/media/rc
James Hogan 262912335c [media] rc-main: fix missing unlock if no devno left
While playing with make coccicheck I noticed this message:
drivers/media/rc/rc-main.c:1245:3-9: preceding lock on line 1238

It was introduced by commit 587d1b06e0 ([media] rc-core: reuse device
numbers) which returns -ENOMEM after a mutex_lock without first
unlocking it when there are no more device numbers left. The added code
doesn't depend on the device lock, so move it before the lock is taken.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-03-11 15:56:32 -03:00
..
img-ir [media] rc: img-ir: add Sanyo decoder module 2014-03-11 15:48:12 -03:00
keymaps [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
Kconfig [media] rc: img-ir: add to build 2014-03-11 15:43:04 -03:00
Makefile [media] rc: img-ir: add to build 2014-03-11 15:43:04 -03:00
ati_remote.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ene_ir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ene_ir.h [media] ene_ir: don't use pr_debug after all 2013-07-29 11:49:45 -03:00
fintek-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
fintek-cir.h [media] rc: Fir warnings on m68k arch 2013-11-08 09:45:37 -02:00
gpio-ir-recv.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
iguanair.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
imon.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-jvc-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-lirc-codec.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-mce_kbd-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-nec-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-raw.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc5-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc5-sz-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc6-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rx51.c [media] ir-rx51: remove deprecated IRQF_DISABLED 2013-10-17 06:09:02 -03:00
ir-sanyo-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-sharp-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-sony-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ite-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ite-cir.h [media] ite-cir: 8709 needs to use pnp resource 2 2011-07-01 16:31:38 -03:00
lirc_dev.c [media] media: lirc: Allow lirc dev to talk to rc device 2013-07-31 16:30:27 -03:00
mceusb.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
nuvoton-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
nuvoton-cir.h [media] nuvoton-cir: Don't touch PS/2 interrupts while initializing 2014-02-04 17:47:26 -02:00
rc-core-priv.h [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
rc-loopback.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
rc-main.c [media] rc-main: fix missing unlock if no devno left 2014-03-11 15:56:32 -03:00
redrat3.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
st_rc.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
streamzap.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ttusbir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
winbond-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00