Thread (2 messages) flat view 2 messages, 2 authors, 2012-08-06

Re: [PATCH 6/6] drivers/net/phy/mdio-mux-gpio.c: drop devm_kfree of devm_kzalloc'd data

From: David Miller <davem@davemloft.net>
Date: 2012-08-06 20:28:37
Also in: kernel-janitors, lkml

From: Julia Lawall <redacted>
Date: Sat,  4 Aug 2012 18:50:49 +0200
From: Julia Lawall <redacted>

devm_kfree should not have to be explicitly used.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,d;
@@

x = devm_kzalloc(...)
...
?-devm_kfree(d,x);
// </smpl>

Signed-off-by: Julia Lawall <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help