Tag: b120a3c286520ca465c54e8afa442be10560053b

pinctrl: pistachio: Drop pinctrl_unregister for devm_ registered device

Author: Wei Yongjun <weiyj.lk@gmail.com> 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 Signed-off-by: Linus Walleij — drivers/pinctrl/pinctrl-pistachio.c | 9 +——– 1 file changed, 1 insertion(+), 8 deletions(-)   diff –git a/drivers/pinctrl/pinctrl-pistachio.c b/drivers/pinctrl/pinctrl-pistachio.c index c6d410e..7bad200 …

Continue reading