Tag: e0feca899c9785316ec67954f1a8e84102eaaca7

ARM: OMAP2+: arch/arm/mach-omap2/devices.c: introduce missing kfree

Author: Julia Lawall <julia@diku.dk> pdata needs to be freed before leaving the function in an error case. A simplified version of the semantic match that finds the problem is as follows: (http://coccinelle.lip6.fr) // @r exists@ local idexpression x; statement S; identifier f1; position p1,p2; expression *ptr != NULL; @@ x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(…); … if (x …

Continue reading