diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 22520d1b8..9f7dff047 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -825,6 +825,7 @@ err: while (--i >= 0) srpt_free_ioctx(sdev, ring[i], dma_size, dir); kfree(ring); + ring = NULL; out: TRACE_EXIT_HRES(ring); return ring;