summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2012-02-04 23:49:40 +0100
committerRoland Dreier <roland@purestorage.com>2012-02-06 08:57:11 -0800
commit715252d41912941efb791a7b7bad94d2614dc5c3 (patch)
treed2fe70572bb550113f76e5984bc4eaf9e8e5694a /drivers/infiniband
parent3af336376f77859da84bb1156ef29d5337b316a9 (diff)
downloadop-kernel-dev-715252d41912941efb791a7b7bad94d2614dc5c3.zip
op-kernel-dev-715252d41912941efb791a7b7bad94d2614dc5c3.tar.gz
IB/srpt: Don't return freed pointer from srpt_alloc_ioctx_ring()
Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/srpt/ib_srpt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c
index c125614..2b73d43 100644
--- a/drivers/infiniband/ulp/srpt/ib_srpt.c
+++ b/drivers/infiniband/ulp/srpt/ib_srpt.c
@@ -687,6 +687,7 @@ err:
while (--i >= 0)
srpt_free_ioctx(sdev, ring[i], dma_size, dir);
kfree(ring);
+ ring = NULL;
out:
return ring;
}
OpenPOWER on IntegriCloud