aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/opal.h
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-04-03 19:51:43 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-04-03 23:36:00 +1000
commit4c3b89effc281704d5395282c800c45e453235f6 (patch)
tree080556b55fad008b4111755f12a41fbff31f6c5a /arch/powerpc/include/asm/opal.h
parentdrivers/of/base.c: Add of_property_read_u64_index (diff)
downloadlinux-dev-4c3b89effc281704d5395282c800c45e453235f6.tar.xz
linux-dev-4c3b89effc281704d5395282c800c45e453235f6.zip
powerpc/powernv: Add sanity checks to pnv_pci_get_{gpu|npu}_dev
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. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/opal.h')
0 files changed, 0 insertions, 0 deletions