Re: [v2, 2/3] powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev

2017-04-06 Thread Michael Ellerman
On Mon, 2017-04-03 at 09:51:43 UTC, Alistair Popple wrote: > The pnv_pci_get_{gpu|npu}_dev functions are used to find associations > between nvlink PCIe devices and standard PCIe devices. However they > lacked basic sanity checking which results in NULL pointer > dereferencing if they are

Re: [v2, 2/3] powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev

2017-04-06 Thread Michael Ellerman
On Mon, 2017-04-03 at 09:51:43 UTC, Alistair Popple wrote: > The pnv_pci_get_{gpu|npu}_dev functions are used to find associations > between nvlink PCIe devices and standard PCIe devices. However they > lacked basic sanity checking which results in NULL pointer > dereferencing if they are

[PATCH v2 2/3] powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev

2017-04-03 Thread Alistair Popple
The pnv_pci_get_{gpu|npu}_dev functions are used to find associations between nvlink PCIe devices and standard PCIe devices. However they lacked basic sanity checking which results in NULL pointer dereferencing if they are incorrect called can be harder to spot than an explicit WARN_ON.

[PATCH v2 2/3] powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev

2017-04-03 Thread Alistair Popple
The pnv_pci_get_{gpu|npu}_dev functions are used to find associations between nvlink PCIe devices and standard PCIe devices. However they lacked basic sanity checking which results in NULL pointer dereferencing if they are incorrect called can be harder to spot than an explicit WARN_ON.