diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-02-04 22:49:40 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-02-06 16:57:11 (GMT) |
commit | 715252d41912941efb791a7b7bad94d2614dc5c3 (patch) | |
tree | d2fe70572bb550113f76e5984bc4eaf9e8e5694a /drivers/infiniband/ulp | |
parent | 3af336376f77859da84bb1156ef29d5337b316a9 (diff) | |
download | linux-fsl-qoriq-715252d41912941efb791a7b7bad94d2614dc5c3.tar.xz |
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/ulp')
-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 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; } |