From: Henrique de Moraes Holschuh Date: Sun, 20 Sep 2009 17:09:22 +0000 (-0300) Subject: thinkpad-acpi: don't leave ERR_PTR() pointers around X-Git-Tag: v2.6.32-rc1~18^2~1^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=435c47e20bc212d0fa6652ac93fae8eaee7b9b34;p=pandora-kernel.git thinkpad-acpi: don't leave ERR_PTR() pointers around backlight_device_register returns ERR_PTR() in case of problems, and the current code would leave that ERR_PTR in ibm_backlight_device. The current code paths won't touch it in that situation, but that could change. Make sure to set ibm_backlight_device to NULL in the error path. Signed-off-by: Henrique de Moraes Holschuh Signed-off-by: Len Brown --- Reading git-diff-tree failed