diff options
| author | Vaibhav Jain <[email protected]> | 2017-11-23 03:38:57 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2017-11-23 12:08:34 +0000 |
| commit | 12841f87b7a8ceb3d54f171660f72a86941bfcb3 (patch) | |
| tree | 224d2308470a53e16aa43fc561c325798cef2de1 /tools/perf/scripts/python/stat-cpi.py | |
| parent | powerpc/64s: Fix Power9 DD2.1 logic in DT CPU features (diff) | |
| download | kernel-12841f87b7a8ceb3d54f171660f72a86941bfcb3.tar.gz kernel-12841f87b7a8ceb3d54f171660f72a86941bfcb3.zip | |
cxl: Check if vphb exists before iterating over AFU devices
During an eeh a kernel-oops is reported if no vPHB is allocated to the
AFU. This happens as during AFU init, an error in creation of vPHB is
a non-fatal error. Hence afu->phb should always be checked for NULL
before iterating over it for the virtual AFU pci devices.
This patch fixes the kenel-oops by adding a NULL pointer check for
afu->phb before it is dereferenced.
Fixes: 9e8df8a21963 ("cxl: EEH support")
Cc: [email protected] # v4.3+
Signed-off-by: Vaibhav Jain <[email protected]>
Acked-by: Andrew Donnellan <[email protected]>
Acked-by: Frederic Barrat <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
