diff options
author | Sam Bobroff <sbobroff@linux.ibm.com> | 2018-09-12 11:23:20 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-21 09:19:08 +0100 |
commit | 234bee8bb3a44fa1088543f42cb5e6be5614d8ec (patch) | |
tree | 9b6a34cedc0dec71ce65b660a40a069d8e92a17f /arch/powerpc/kernel/pci-hotplug.c | |
parent | 32f2674c7c06e3772959847745264cbc037f6951 (diff) |
powerpc/eeh: Fix possible null deref in eeh_dump_dev_log()
[ Upstream commit f9bc28aedfb5bbd572d2d365f3095c1becd7209b ]
If an error occurs during an unplug operation, it's possible for
eeh_dump_dev_log() to be called when edev->pdn is null, which
currently leads to dereferencing a null pointer.
Handle this by skipping the error log for those devices.
Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc/kernel/pci-hotplug.c')
0 files changed, 0 insertions, 0 deletions