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)
commitcc92ac20496fa24209712ab561738f4f8b57336a
tree8766429b8fa9f0a97180a9382d2799948e0a0136
parent54669fdeb24b129cfa6f188796430be79ebc8688
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