diff options
| author | Vineeth Vijayan <vneethv@linux.ibm.com> | 2026-09-22 22:48:39 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2026-09-23 16:43:32 +0200 |
| commit | 5b76268dac968612f7283d59b539036de955b7d9 (patch) | |
| tree | 0bd19573debfef728d9e01d3302bbc96dc55d56a /tools/perf/scripts/python/task-analyzer.py | |
| parent | 012bfcd5a51082d5a65f096dfb9ca652b5267965 (diff) | |
| download | linux-next-5b76268dac968612f7283d59b539036de955b7d9.tar.gz linux-next-5b76268dac968612f7283d59b539036de955b7d9.zip | |
s390/cio: Fix NULL pointer dereference in ccw_device_get_util_str()
The channel path registry entry associated with a CHPID may be removed
while the subchannel's PMCW still references that CHPID. In this case,
chpid_to_chp() can return NULL, leading to a NULL pointer dereference.
Add the missing NULL check before dereferencing the returned pointer.
Fixes: 199652309a4d ("s390/cio: add helper to query utility strings per given ccw device")
Cc: stable@vger.kernel.org
Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
