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>
led_classdev_unregister(&torch_data->flash_dev);
}
- kfree(torch_data->pdata);
kfree(torch_data);
}
return 0;