forked from Minki/linux
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>
This commit is contained in:
parent
3af336376f
commit
715252d419
@ -687,6 +687,7 @@ err:
|
||||
while (--i >= 0)
|
||||
srpt_free_ioctx(sdev, ring[i], dma_size, dir);
|
||||
kfree(ring);
|
||||
ring = NULL;
|
||||
out:
|
||||
return ring;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user