[v3] cxl: Check if vphb exists before iterating over AFU devices

Michael Ellerman patch-notifications at ellerman.id.au
Fri Nov 24 20:46:40 AEDT 2017


On Thu, 2017-11-23 at 03:38:57 UTC, Vaibhav Jain wrote:
> During an eeh a kernel-oops is reported if no vPHB is allocated to the
> AFU. This happens as during AFU init, an error in creation of vPHB is
> a non-fatal error. Hence afu->phb should always be checked for NULL
> before iterating over it for the virtual AFU pci devices.
> 
> This patch fixes the kenel-oops by adding a NULL pointer check for
> afu->phb before it is dereferenced.
> 
> Fixes: 9e8df8a2196("cxl: EEH support")
> Cc: stable at vger.kernel.org
> Signed-off-by: Vaibhav Jain <vaibhav at linux.vnet.ibm.com>
> Acked-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
> Acked-by: Frederic Barrat <fbarrat at linux.vnet.ibm.com>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/12841f87b7a8ceb3d54f171660f72a

cheers


More information about the Linuxppc-dev mailing list