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
1 changed files with 1 additions and 0 deletions
|
@ -687,6 +687,7 @@ err:
|
||||||
while (--i >= 0)
|
while (--i >= 0)
|
||||||
srpt_free_ioctx(sdev, ring[i], dma_size, dir);
|
srpt_free_ioctx(sdev, ring[i], dma_size, dir);
|
||||||
kfree(ring);
|
kfree(ring);
|
||||||
|
ring = NULL;
|
||||||
out:
|
out:
|
||||||
return ring;
|
return ring;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue