[ARM] tegra: stingray: Invalid kfree in lm3559 error path
authorvcdt34 <john.poplett@motorola.com>
Wed, 29 Sep 2010 21:37:53 +0000 (16:37 -0500)
committerColin Cross <ccross@android.com>
Thu, 7 Oct 2010 00:03:18 +0000 (17:03 -0700)
commitc7c0790dce81938e807bc04c9a25168744a6a201
tree460541e6bbf5f7f73a12492de9de3940b2416b52
parent178d2c3f85d9e9198358e0d008bc8feb78a55e60
[ARM] tegra: stingray: Invalid kfree in lm3559 error path

A failed write in the lm3559 driver takes an error path
that incorrectly attempted to free statically allocated
memory, resulting in a kernel crash. This bug prevents
the kernel from booting successfully on development
hardware systems that doesn't have the torch LED.

Change-Id: I96d252c5d5b6939f5d47e27aece81e1f61ba1cd1
Signed-off-by: John Poplett <john.poplett@motorola.com>
drivers/leds/led-lm3559.c