This is a note to let you know that I've just added the patch titled Platform: Fix error path in samsung-laptop init
to my gregkh-2.6 tree which can be found in directory form at: http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/ and in git form at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/patches.git The filename of this patch is: platform-fix-error-path-in-samsung-laptop-init.patch The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) If this patch meets the merge guidelines for a bugfix, it should be merged into Linus's tree before the next major kernel release. If not, it will be merged into Linus's tree during the next merge window. Either way, you will probably be copied on the patch when it gets sent to Linus for merging so that others can see what is happening in kernel development. If you have any questions about this process, please let me know. >From dh.herrm...@googlemail.com Wed Aug 24 16:09:42 2011 From: David Herrmann <dh.herrm...@googlemail.com> To: platform-driver-...@vger.kernel.org Cc: gre...@suse.de, dh.herrm...@googlemail.com, m...@redhat.com Subject: Platform: Fix error path in samsung-laptop init Date: Tue, 23 Aug 2011 13:03:07 +0200 Message-Id: <1314097387-3665-1-git-send-email-dh.herrm...@googlemail.com> 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.herrm...@googlemail.com> Cc: stable <sta...@kernel.org> Signed-off-by: Greg Kroah-Hartman <gre...@suse.de> --- drivers/platform/x86/samsung-laptop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/platform/x86/samsung-laptop.c +++ b/drivers/platform/x86/samsung-laptop.c @@ -848,7 +848,7 @@ static int __init samsung_init(void) sabi_iface = ioremap_nocache(ifaceP, 16); if (!sabi_iface) { pr_err("Can't remap %x\n", ifaceP); - goto exit; + goto error_no_signature; } if (debug) { printk(KERN_DEBUG "ifaceP = 0x%08x\n", ifaceP); @@ -903,7 +903,6 @@ static int __init samsung_init(void) if (retval) goto error_file_create; -exit: return 0; error_file_create: _______________________________________________ stable mailing list stable@linux.kernel.org http://linux.kernel.org/mailman/listinfo/stable