path: root/mm/page_alloc.c
diff options
authorJulia Lawall <>2010-03-10 15:20:42 -0800
committerLinus Torvalds <>2010-03-12 15:52:28 -0800
commit9b3a6549b2602ca30f58715a0071e29f9898cae9 (patch)
tree8709822f0018f55a7e542ca9c0755d99f5226b4f /mm/page_alloc.c
parent2d30a1f6315b8940537e8e98882c6038fbac9ba5 (diff)
drivers/scsi/ses.c: eliminate double free
The few lines below the kfree of hdr_buf may go to the label err_free which will also free hdr_buf. The most straightforward solution seems to be to just move the kfree of hdr_buf after these gotos. A simplified version of the semantic match that finds this problem is as follows: ( // <smpl> @r@ identifier E; expression E1; iterator I; statement S; @@ *kfree(E); ... when != E = E1 when != I(E,...) S when != &E *kfree(E); // </smpl> Signed-off-by: Julia Lawall <> Cc: James Bottomley <> Cc: <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions