Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 715252d4 authored by Jesper Juhl's avatar Jesper Juhl Committed by Roland Dreier
Browse files

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

parent 3af33637
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -687,6 +687,7 @@ static struct srpt_ioctx **srpt_alloc_ioctx_ring(struct srpt_device *sdev,
	while (--i >= 0)
		srpt_free_ioctx(sdev, ring[i], dma_size, dir);
	kfree(ring);
	ring = NULL;
out:
	return ring;
}