RDMA/cxgb4: Fix memory leaks in c4iw_alloc() error paths
authorChristoph Jaeger <christophjaeger@linux.com>
Mon, 21 Apr 2014 15:02:42 +0000 (17:02 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 20 May 2014 00:55:43 +0000 (17:55 -0700)
commit65b302ad31b02b0790417f4e65833af494cb35ce
tree0d190ffc41dd9dec1bb537af7eb8efaf26ddb565
parentd6d211db37e75de2ddc3a4f979038c40df7cc79c
RDMA/cxgb4: Fix memory leaks in c4iw_alloc() error paths

c4iw_alloc() bails out without freeing the storage that 'devp' points to.

Picked up by Coverity - CID 1204241.

Fixes: fa658a98a2 ("RDMA/cxgb4: Use the BAR2/WC path for kernel QPs and T5 devices")
Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/device.c