[media] drivers/media/IR/ene_ir.c: fix NULL dereference
authorJiri Slaby <jslaby@suse.cz>
Fri, 1 Oct 2010 21:13:40 +0000 (18:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 09:54:30 +0000 (07:54 -0200)
commit2e75bcea00273146615dbc6ed3bbabce8d0bc1ca
treefd7b8fddccd6dd0ba61f0448ff23721c5748208c
parent92d0d66c1515c8ee3b700ab3d610587c71fe497f
[media] drivers/media/IR/ene_ir.c: fix NULL dereference

When 'dev' allocation fails in ene_probe we jump to error label where we
dereference the 'dev'.  Fix it by jumping few lines below.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ene_ir.c