Thread (13 messages) 13 messages, 4 authors, 2015-10-07

Re: [2/3] cxl: fix leak of ctx->irq_bitmap when releasing context via kernel API

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2015-10-01 06:51:04

On Wed, 2015-30-09 at 01:58:06 UTC, Andrew Donnellan wrote:
At present, ctx->irq_bitmap is freed in afu_release_irqs(), which is called
from afu_release() via cxl_context_detach().

Move the freeing of ctx->irq_bitmap from afu_release_irqs() to
reclaim_ctx() (called through cxl_context_free()) so it's freed when
releasing a context via the kernel API (cxl_release_context()) or the
userspace API (afu_release()).

Reported-by: Matthew R. Ochs <redacted>
Fixes: 6f7f0b3df6d4 ("cxl: Add AFU virtual PHB and kernel API")
Signed-off-by: Andrew Donnellan <redacted>
Acked-by: Ian Munsie <redacted>
Reviewed-by: Matthew R. Ochs <redacted>
Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/52adee580d3c71a0dfabc316

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help