summaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-08-29 19:47:18 (GMT)
committerKumar Gala <galak@kernel.crashing.org>2010-08-31 21:38:47 (GMT)
commitfa9fc821f8892590211a9aa9e855eb83152b9870 (patch)
tree8fece0e8803418f5c23b1861ec49b205fd02ee49 /arch/powerpc/sysdev
parentff33f1821259d00d3fd85d86f59783e2ca3c9ee1 (diff)
downloadlinux-fsl-qoriq-fa9fc821f8892590211a9aa9e855eb83152b9870.tar.xz
arch/powerpc/platforms/83xx/mpc837x_mds.c: Add missing iounmap
The function of_iomap returns the result of calling ioremap, so iounmap should be called on the result in the error handling code, as done in the normal exit of the function. The sematic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r exists@ local idexpression x; expression E,E1; identifier l; statement S; @@ *x = of_iomap(...); ... when != iounmap(x) when != if (...) { ... iounmap(x); ... } when != E = x when any ( if (x == NULL) S | if (...) { ... when != iounmap(x) when != if (...) { ... iounmap(x); ... } ( return <+...x...+>; | * return ...; ) } ) ... when != x = E1 when any iounmap(x); // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev')
0 files changed, 0 insertions, 0 deletions