Re: [PATCH 3/3] cxl: fix leak of ctx->mapping when releasing kernel API contexts

2015-09-30 Thread Matthew R. Ochs
Reviewed-by: Matthew R. Ochs ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 3/3] cxl: fix leak of ctx->mapping when releasing kernel API contexts

2015-09-29 Thread Ian Munsie
Good catch! Acked-by: Ian Munsie ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 3/3] cxl: fix leak of ctx->mapping when releasing kernel API contexts

2015-09-29 Thread Andrew Donnellan
When a context is created via the kernel API, ctx->mapping is allocated within the kernel and thus needs to be freed when the context is freed. reclaim_ctx() attempts to do this for contexts with the ctx->kernelapi flag set, but afu_release() (which can be called from the kernel API through cxl_fd_