[PATCH] pinctrl: meson: Drop pinctrl_unregister for devm_ registered device

Linus Walleij linus.walleij at linaro.org
Thu Aug 4 01:10:23 PDT 2016


On Tue, Jul 26, 2016 at 4:51 PM, Wei Yongjun <weiyj.lk at gmail.com> wrote:

> It's not necessary to unregister pin controller device registered
> with devm_pinctrl_register() and using pinctrl_unregister() leads
> to a double free.
>
> This is detected by Coccinelle semantic patch.
>
> Signed-off-by: Wei Yongjun <weiyj.lk at gmail.com>

Patch applied for fixes with Dmitry's and Kevin's tags.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list