Thread (1 message) 1 message, 1 author, 2016-07-26

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

From: khilman@baylibre.com (Kevin Hilman)
Date: 2016-07-26 21:56:47
Also in: linux-amlogic, linux-gpio

Dmitry Torokhov [off-list ref] writes:
On Tue, Jul 26, 2016 at 02:51:58PM +0000, Wei Yongjun wrote:
quoted
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 <redacted>
Fixes: e649f7ec8c5f ("pinctrl: meson: Use devm_pinctrl_register() for
pinctrl registration")

Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help