cxl: Fix NULL pointer dereference on kernel contexts with no AFU interrupts
Michael Ellerman
mpe at ellerman.id.au
Mon Jul 11 20:19:27 AEST 2016
On Wed, 2016-29-06 at 18:55:17 UTC, Ian Munsie wrote:
> From: Ian Munsie <imunsie at au1.ibm.com>
>
> If a kernel context is initialised and does not have any AFU interrupts
> allocated it will cause a NULL pointer dereference when the context is
> detached since the irq_names list will not have been initialised.
>
> Move the initialisation of the irq_names list into the cxl_context_init
> routine so that it will be valid for the entire lifetime of the context
> and will not cause a NULL pointer dereference.
>
> Signed-off-by: Ian Munsie <imunsie at au1.ibm.com>
> Reviewed-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/f5c9df9a442f586b1839476272
cheers
More information about the Linuxppc-dev
mailing list