Re: [01/14] powerpc/eeh: Fix possible null deref in eeh_dump_dev_log()

2018-10-14 Thread Michael Ellerman
On Wed, 2018-09-12 at 01:23:20 UTC, Sam Bobroff wrote: > 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.

[PATCH 01/14] powerpc/eeh: Fix possible null deref in eeh_dump_dev_log()

2018-09-11 Thread Sam Bobroff
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 --- arch/powerpc/kernel/eeh.c | 5 +