]> git.karo-electronics.de Git - linux-beck.git/commit
staging: adis16255: fix sysfs leak
authorKulikov Vasiliy <segooon@gmail.com>
Wed, 11 Aug 2010 08:00:48 +0000 (12:00 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Aug 2010 21:51:53 +0000 (14:51 -0700)
commitc7e62defd3c4a015b1f80a642bc320b9f9f3896c
treefcef9fed59ff0cf1eee18519d97f61bcad5b7b6c
parentcd6541c03d0777963615d00b22ff8a4c8ee8d601
staging: adis16255: fix sysfs leak

Original code does not call sysfs_remove_group() on error. This can lead
to NULL dereference.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/adis16255/adis16255.c