From: Corey Minyard Date: Thu, 10 Feb 2011 22:08:38 +0000 (-0600) Subject: char/ipmi: fix OOPS caused by pnp_unregister_driver on unregistered driver X-Git-Tag: v2.6.38-rc5~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2478521afc20227658a10a8c5c2bf1a2aa615b3;p=pandora-kernel.git char/ipmi: fix OOPS caused by pnp_unregister_driver on unregistered driver This patch fixes an OOPS triggered when calling modprobe ipmi_si a second time after the first modprobe returned without finding any ipmi devices. This can happen if you reload the module after having the first module load fail. The driver was not deregistering from PNP in that case. Peter Huewe originally reported this patch and supplied a fix, I have a different patch based on Linus' suggestion that cleans things up a bit more. Cc: stable@kernel.org Cc: openipmi-developer@lists.sourceforge.net Reviewed-by: Peter Huewe Cc: Randy Dunlap Signed-off-by: Corey Minyard Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed