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

Kevin Hilman khilman at baylibre.com
Tue Jul 26 14:56:44 PDT 2016


Dmitry Torokhov <dmitry.torokhov at gmail.com> writes:

> On Tue, Jul 26, 2016 at 02:51:58PM +0000, Wei Yongjun 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>
>
> Fixes: e649f7ec8c5f ("pinctrl: meson: Use devm_pinctrl_register() for
> pinctrl registration")
>
> Reviewed-by: Dmitry Torokhov <dmitry.torokhov at gmail.com>

Acked-by: Kevin Hilman <khilman at baylibre.com>



More information about the linux-arm-kernel mailing list