From: Devendra Naga Date: Tue, 10 Jul 2012 05:49:15 +0000 (+0530) Subject: staging/sm7xxfb: return a proper err for smtc_alloc_fb_info failure X-Git-Tag: v3.6-rc1~100^2~304 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd67859d380b4c2af160d4aa3d8041bf63d7bd36;p=pandora-kernel.git staging/sm7xxfb: return a proper err for smtc_alloc_fb_info failure as smtc_alloc_fb_info can fail, but we are returning the 0, how? because the pci_enable_device succeeded, which makes the probe return 0, and may cause panics or some strange problems at remove when driver unloaded by modprobe -r. so return err properly as smtc_alloc_fb_info is doing kzallocs its good to do -ENOMEM Signed-off-by: Devendra Naga Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed