]> err.no Git - linux-2.6/commit
leds: Fix trigger unregister_simple if register_simple fails
authorRichard Purdie <rpurdie@rpsys.net>
Thu, 10 May 2007 22:46:30 +0000 (23:46 +0100)
committerRichard Purdie <rpurdie@rpsys.net>
Mon, 16 Jul 2007 00:15:50 +0000 (01:15 +0100)
commit3593a6d64d774efb9d7ec80947607401ee6731c0
tree5e1a05877dc385b9d74ef40c5168b567c54e70bd
parent66242f7ec531953fbc2f4040c5ffe1f1ffe6c5c9
leds: Fix trigger unregister_simple if register_simple fails

Fix led_trigger_unregister_simple to handle the case where
led_trigger_register_simple fails, avoiding a NULL pointer
dereference.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
drivers/leds/led-triggers.c