]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: lirc, fix NULL dereference
authorJiri Slaby <jslaby@suse.cz>
Sat, 4 Sep 2010 12:32:25 +0000 (14:32 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 5 Sep 2010 04:26:05 +0000 (21:26 -0700)
commit57944787872d97f2e944c8aac65e11f268fe7e9b
tree8766429b8fa9f0a97180a9382d2799948e0a0136
parent44bd0a67863bc86a82144ccf9c4acc8f8d4e5e31
Staging: lirc, fix NULL dereference

When 'context' allocation fails in imon_probe, we jump to unlock
context->ctx_lock. This is wrong as context is NULL and the lock is
not locked.

Fix the labels.

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>
drivers/staging/lirc/lirc_imon.c