RDMA/amso1100: Fix memory leak in c2_reg_phys_mr()
authorRoland Dreier <rolandd@cisco.com>
Thu, 28 Sep 2006 17:44:07 +0000 (10:44 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 28 Sep 2006 17:44:07 +0000 (10:44 -0700)
commitee30cb5b0b65392843cc3beaba48160ee4a3764e
treec996c2327d3986d2a06e3a1352aa8774394aadca
parent44334bd97e76662c5f40c629357e6acc4dee3e8a
RDMA/amso1100: Fix memory leak in c2_reg_phys_mr()

If the allocation of mr fails, then c2_reg_phys_mr() leaks the
page_list array it allocated earlier.

This was Coverity CID #1413.

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