]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/ipath: Fix memory leak in init_shadow_tids() error path
authorRoland Dreier <rolandd@cisco.com>
Mon, 23 Feb 2009 04:04:34 +0000 (20:04 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 23 Feb 2009 04:04:34 +0000 (20:04 -0800)
commit71c4512201575c7cc008b364e2e2c75cc7085c26
tree0a8d76992a500aa82e8943c3dd4743b3d3e3d6e0
parentf3b8436ad9a8ad36b3c9fa1fe030c7f38e5d3d0b
IB/ipath: Fix memory leak in init_shadow_tids() error path

If the second vmalloc() fails, the wrong pointer is pased to vfree(), so
the first vmalloc() ends up getting leaked.

This was spotted by the Coverity checker (CID 2709).

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_init_chip.c