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

2017-11-22 Thread Vaibhav Jain
Frederic Barrat writes: > > .. that one is more annoying. > afu->phb == NULL? Not sure how I missed that. Thanks for catching this Fred. I have sent a v3 with the fix. -- Vaibhav Jain Linux Technology Center, IBM India Pvt. Ltd.

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

2017-11-22 Thread Frederic Barrat
Le 22/11/2017 à 13:17, Vaibhav Jain a écrit : During an eeh a kernel-oops is reported if no vPHB to allocated to the typo, "to allocated". Not important, but 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

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

2017-11-22 Thread Vaibhav Jain
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

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

2017-11-22 Thread Michael Ellerman
Vaibhav Jain 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. >

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

2017-11-22 Thread Vaibhav Jain
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