Skip to content

Commit

Permalink
IB/srpt: Don't return freed pointer from srpt_alloc_ioctx_ring()
Browse files Browse the repository at this point in the history
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Roland Dreier <roland@purestorage.com>
  • Loading branch information
Jesper Juhl authored and Roland Dreier committed Feb 6, 2012
1 parent 3af3363 commit 715252d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/ulp/srpt/ib_srpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ static struct srpt_ioctx **srpt_alloc_ioctx_ring(struct srpt_device *sdev,
while (--i >= 0)
srpt_free_ioctx(sdev, ring[i], dma_size, dir);
kfree(ring);
ring = NULL;
out:
return ring;
}
Expand Down

0 comments on commit 715252d

Please sign in to comment.