From: Axel Lin Date: Tue, 26 Jul 2011 00:13:16 +0000 (-0700) Subject: drivers/leds/leds-sunfire.c: fix sunfire_led_generic_probe() error handling X-Git-Tag: v3.1-rc1~241^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e179840ba88c342d215631356cbfe4e62c9f175b;p=pandora-kernel.git drivers/leds/leds-sunfire.c: fix sunfire_led_generic_probe() error handling - return -ENOMEM if kzalloc fails, rather than the current -EINVAL - fix a memory leak in the case of goto out_unregister_led_cdevs Signed-off-by: Axel Lin Cc: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed