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)
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>

No differences found