1
0
Fork 0

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>
hifive-unleashed-5.1
Jesper Juhl 2012-02-04 23:49:40 +01:00 committed by Roland Dreier
parent 3af336376f
commit 715252d419
1 changed files with 1 additions and 0 deletions

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;
}