diff options
| author | Russell Currey <ruscur@russell.cc> | 2016-09-12 14:17:22 +1000 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2017-02-23 03:54:02 +0000 |
| commit | 89b1e6c4a5fe244a4a96c1a560b29720516fa328 (patch) | |
| tree | 959ec3ff1018a96f46a01d617f8d7b3665248ebc /include/linux/clkdev.h | |
| parent | 1caebfb554c8c667d4d32700990373c954d6da41 (diff) | |
powerpc/eeh: Null check uses of eeh_pe_bus_get
commit 04fec21c06e35b169a83e75a84a015ab4606bf5e upstream.
eeh_pe_bus_get() can return NULL if a PCI bus isn't found for a given PE.
Some callers don't check this, and can cause a null pointer dereference
under certain circumstances.
Fix this by checking NULL everywhere eeh_pe_bus_get() is called.
Fixes: 8a6b1bc70dbb ("powerpc/eeh: EEH core to handle special event")
Signed-off-by: Russell Currey <ruscur@russell.cc>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/clkdev.h')
0 files changed, 0 insertions, 0 deletions
