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

Michael Ellerman mpe at ellerman.id.au
Wed Nov 22 21:18:51 AEDT 2017


Vaibhav Jain <vaibhav at linux.vnet.ibm.com> writes:

> During an eeh a kernel-oops is reported if no vPHB to 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.
>
> Signed-off-by: Vaibhav Jain <vaibhav at linux.vnet.ibm.com>
>
> ---
> Changelog:
> v2 -> Added the vphb NULL check to cxl_vphb_error_detected() [Andrew]

Fixes: ?

Stable?

cheers


More information about the Linuxppc-dev mailing list