linux-kernel-test/drivers/staging/lirc
Jiri Slaby ff7d368ed9 Staging: lirc, fix lock imbalance
[2nd version -- melded all three together]

1) There is a missing return or goto statement in one fail path in
sasem_probe, so that the code contiues its normal execution (and
unlocks a mutex twice). Fix that by jumping to the right place.

Anyway the code is very broken on its fail paths and there are many
leaks. But that's a different story.

2) There is an omitted unlock in one fail path in vfd_write, jump to
the right place to unlock the lock.

3) In the probe function, there is one more error where the lock is
not unlocked. Fix that by jumping to the proper place.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Jarod Wilson <jarod@redhat.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-09-04 21:26:06 -07:00
..
Kconfig V4L/DVB: STAGING: remove lirc_ene0100 driver 2010-08-08 23:43:00 -03:00
lirc_bt829.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_ene0100.h
lirc_i2c.c V4L/DVB: staging/lirc: add lirc_i2c driver 2010-08-02 16:43:22 -03:00
lirc_igorplugusb.c V4L/DVB: staging/lirc: add lirc_igorplugusb driver 2010-08-02 16:43:23 -03:00
lirc_imon.c Staging: lirc, fix NULL dereference 2010-09-04 21:26:05 -07:00
lirc_it87.c V4L/DVB: staging/lirc: fix non-CONFIG_MODULES build horkage 2010-08-08 23:42:57 -03:00
lirc_it87.h V4L/DVB: staging/lirc: add lirc_it87 driver 2010-08-02 16:43:26 -03:00
lirc_ite8709.c V4L/DVB: staging/lirc: add lirc_ite8709 driver 2010-08-02 16:43:25 -03:00
lirc_parallel.c V4L/DVB: staging/lirc: fix non-CONFIG_MODULES build horkage 2010-08-08 23:42:57 -03:00
lirc_parallel.h V4L/DVB: staging/lirc: add lirc_parallel driver 2010-08-02 16:43:27 -03:00
lirc_sasem.c Staging: lirc, fix lock imbalance 2010-09-04 21:26:06 -07:00
lirc_serial.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_sir.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_ttusbir.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
lirc_zilog.c V4L/DVB: staging/lirc: CodingStyle cleanups 2010-08-02 16:43:35 -03:00
Makefile V4L/DVB: STAGING: remove lirc_ene0100 driver 2010-08-08 23:43:00 -03:00
TODO V4L/DVB: staging/lirc: wire up Kconfig and Makefile bits 2010-08-02 16:43:34 -03:00
TODO.lirc_i2c V4L/DVB: staging: Add an specific TODO note for lirc_i2c 2010-08-02 16:43:23 -03:00