]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Platform: Fix error path in samsung-laptop init
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 20 Sep 2011 16:16:12 +0000 (09:16 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:52 +0000 (11:17 -0800)
commitc2a94217201d0ee6c2cd40c78cd6991b2000f184
treea1ef8e82c45e011000d09933d83c707f2959344f
parentf587a584c88e42c39a697dea0c1599cfab4d0783
Platform: Fix error path in samsung-laptop init

commit a7ea19926ffba86f373f6050a106cd162dbb9a78 upstream.

samsung_init() should not return success if not all devices are initialized.
Otherwise, samsung_exit() will dereference sdev NULL pointers and others.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/samsung-laptop.c