Re: [PATCH] mmc: host: fix memory leak in mmc_add_host

2011-04-11 Thread Chris Ball
Hi Wolfram, On Mon, Apr 11 2011, Wolfram Sang wrote: led_trigger_register_simple() allocates memory which must not be leaked in the error-path of mmc_add_host. Move it past the only error-check in the function. Signed-off-by: Wolfram Sang w.s...@pengutronix.de --- I don't see any reason

[PATCH] mmc: host: fix memory leak in mmc_add_host

2011-04-10 Thread Wolfram Sang
led_trigger_register_simple() allocates memory which must not be leaked in the error-path of mmc_add_host. Move it past the only error-check in the function. Signed-off-by: Wolfram Sang w.s...@pengutronix.de --- I don't see any reason why it needs to be called before device_add.