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

Signed-off-by: Jesper Juhl <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
Jesper Juhl 2012-02-04 23:49:40 +01:00 • committed by Roland Dreier
commit 715252d419

View file

@ -687,6 +687,7 @@ err:
while (--i >= 0)
srpt_free_ioctx(sdev, ring[i], dma_size, dir);
kfree(ring);
ring = NULL;
out:
return ring;
}