Thread (6 messages) flat view 6 messages, 3 authors, 2016-07-11

Re: [PATCH] cxl: Fix NULL pointer dereference on kernel contexts with no AFU interrupts

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-06-30 05:00:31

On Thu, 2016-06-30 at 08:28 +1000, Andrew Donnellan wrote:
On 30/06/16 04:55, Ian Munsie wrote:
quoted
From: Ian Munsie <redacted>

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 <redacted>
As it's nice having your machine not crash on every shutdown...
Fixes: ????

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