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)
committerMatthew Garrett <mjg@redhat.com>
Mon, 24 Oct 2011 14:52:35 +0000 (16:52 +0200)
commita7ea19926ffba86f373f6050a106cd162dbb9a78
tree4c6da04869eefdf754bfb3c60b29b24dd9d2640b
parentbee460be8c691c544e84ed678280ace6153104c6
Platform: Fix error path in samsung-laptop init

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/samsung-laptop.c