Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmc: core: fix memory leak in mmc_add_host
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 <[email protected]> Signed-off-by: Chris Ball <[email protected]>
- Loading branch information