IPoIB: Fix error path memory leak
authorEli Cohen <eli@mellanox.co.il>
Tue, 21 Aug 2007 15:46:10 +0000 (18:46 +0300)
committerRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:06 +0000 (19:59 -0700)
commitca6de177acef8f2c7c3901ea583a263364ca7bbb
tree04910ca60735e6ef99916f7b91d83fc468852af6
parentb3ac60fc243f2312d27ecded058ef96f52f25fe0
IPoIB: Fix error path memory leak

Clean up properly if ib_query_pkey() or ib_query_gid() fail.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c