[PATCH] mfd: ab8500-core: Fix invalid free of devm_ allocated data

Linus Walleij linus.walleij at linaro.org
Wed Nov 28 10:48:14 EST 2012


On Fri, Nov 23, 2012 at 1:18 PM, Tushar Behera <tushar.behera at linaro.org> wrote:

> The objects allocated by devm_* APIs are managed by devres and are
> freed when the device is detached. Hence there is no need to remove
> them explicitly in remove function.
>
> Signed-off-by: Tushar Behera <tushar.behera at linaro.org>

Looks good to me.
Acked-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list