Commit 715252d4 authored by Jesper Juhl's avatar Jesper Juhl Committed by Roland Dreier

IB/srpt: Don't return freed pointer from srpt_alloc_ioctx_ring()

Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 3af33637
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment