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

2016-06-29 Thread Ian Munsie
Excerpts from andrew.donnellan's message of 2016-06-30 15:15:02 +1000: > On 30/06/16 15:00, Michael Ellerman wrote: > > On Thu, 2016-06-30 at 08:28 +1000, Andrew Donnellan wrote: > >> On 30/06/16 04:55, Ian Munsie wrote: > >>> > >>> From: Ian Munsie > >>> > >>> If a kernel context is initialised a

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

2016-06-29 Thread Andrew Donnellan
On 30/06/16 15:00, Michael Ellerman wrote: On Thu, 2016-06-30 at 08:28 +1000, Andrew Donnellan wrote: On 30/06/16 04:55, Ian Munsie wrote: From: Ian Munsie If a kernel context is initialised and does not have any AFU interrupts allocated it will cause a NULL pointer dereference when the cont

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

2016-06-29 Thread Michael Ellerman
On Thu, 2016-06-30 at 08:28 +1000, Andrew Donnellan wrote: > On 30/06/16 04:55, Ian Munsie wrote: > >  > > From: Ian Munsie > >  > > 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

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

2016-06-29 Thread Andrew Donnellan
On 30/06/16 04:55, Ian Munsie wrote: From: Ian Munsie 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

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

2016-06-29 Thread Ian Munsie
From: Ian Munsie 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_ini