-
由 Himangi Saraogi 提交于
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: NJingoo Han <jg1.han@samsung.com> Acked-by: NJulia Lawall <julia.lawall@lip6.fr> Signed-off-by: NHimangi Saraogi <himangi774@gmail.com> Signed-off-by: NFelipe Balbi <balbi@ti.com>
0c582408