git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c4e3db
)
usb: phy: drop kfree of devm_kzalloc's data
author
Himangi Saraogi
<himangi774@gmail.com>
Sun, 10 Aug 2014 19:59:37 +0000
(
01:29
+0530)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 19 Aug 2014 14:21:34 +0000
(09:21 -0500)
Using kfree to free data allocated with devm_kzalloc causes double frees.
The Coccinelle semantic patch that fixes this problem is as follows:
// <smpl>
@@
expression x;
@@
x = devm_kzalloc(...)
...
?-kfree(x);
// </smpl>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-gpio-vbus-usb.c
patch
|
blob
|
history
diff --cc
drivers/usb/phy/phy-gpio-vbus-usb.c
Simple merge