commit | 0794ec8ce327ec74416b569b8fb1951274693700 | [log] [tgz] |
---|---|---|
author | Julia Lawall <julia@diku.dk> | Tue Dec 22 21:30:59 2009 +0100 |
committer | Dan Williams <dan.j.williams@intel.com> | Tue Dec 22 15:30:08 2009 -0700 |
tree | 4e6a59cdf0c13005d22165932b82acf1213bc937 | |
parent | 1e9d1b13efae7e0a2705611d47ae5f07e27015f0 [diff] |
drivers/dma: Correct use after free Move the kfree after the iounmap that refers to the same structure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression x,e; identifier f; iterator I; statement S; @@ *kfree(x); ... when != &x when != x = e when != I(x,...) S *x->f // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Dan Williams <dan.j.williams@intel.com>