From: Frank Schaefer Date: Sat, 22 Dec 2012 13:13:38 +0000 (-0300) Subject: [media] em28xx: input: fix oops on device removal X-Git-Tag: v3.9-rc1~93^2~444 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f5741aa6a71aea6bc8f186e8753f270ae8742f1;p=pandora-kernel.git [media] em28xx: input: fix oops on device removal When em28xx_ir_init() fails due to an configuration error, it frees the memory of struct em28xx_IR *ir, but doesn't set the corresponding pointer in the device struct to NULL. On device removal, em28xx_ir_fini() gets called, which then calls rc_unregister_device() with a pointer to freed memory. Fixes bug 26572 (http://bugzilla.kernel.org/show_bug.cgi?id=26572) Signed-off-by: Frank Schäfer Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed