From: Himangi Saraogi Date: Sun, 10 Aug 2014 19:59:37 +0000 (+0530) Subject: usb: phy: drop kfree of devm_kzalloc's data X-Git-Tag: fix-v3.17-io-chain-v3~12^2~15^2~13 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c5824083b8ca4aff083dc74024d0bfd46f9da9d;p=pandora-kernel.git usb: phy: drop kfree of devm_kzalloc's data Using kfree to free data allocated with devm_kzalloc causes double frees. The Coccinelle semantic patch that fixes this problem is as follows: // @@ expression x; @@ x = devm_kzalloc(...) ... ?-kfree(x); // Reviewed-by: Jingoo Han Acked-by: Julia Lawall Signed-off-by: Himangi Saraogi Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed