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

Simple merge