diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-02-04 23:49:40 +0100 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-02-06 08:57:11 -0800 |
commit | 715252d41912941efb791a7b7bad94d2614dc5c3 (patch) | |
tree | d2fe70572bb550113f76e5984bc4eaf9e8e5694a /drivers | |
parent | 3af336376f77859da84bb1156ef29d5337b316a9 (diff) | |
download | linux-stable-715252d41912941efb791a7b7bad94d2614dc5c3.tar.gz linux-stable-715252d41912941efb791a7b7bad94d2614dc5c3.tar.bz2 linux-stable-715252d41912941efb791a7b7bad94d2614dc5c3.zip |
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')
-rw-r--r-- | drivers/infiniband/ulp/srpt/ib_srpt.c | 1 |
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 c125614ac256..2b73d43cd691 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; } |