diff options
author | 2022-05-21 23:34:10 +0300 | |
---|---|---|
committer | 2022-06-06 09:52:17 +0900 | |
commit | bf476fe22aa1851bab4728e0c49025a6a0bea307 (patch) | |
tree | 17e2ef38ae7a12ccdcf14672e53b744507e25ac0 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | ata: libata: drop 'sas_last_tag' (diff) | |
download | linux-dev-bf476fe22aa1851bab4728e0c49025a6a0bea307.tar.xz linux-dev-bf476fe22aa1851bab4728e0c49025a6a0bea307.zip |
ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()
In an unlikely (and probably wrong?) case that the 'ppi' parameter of
ata_host_alloc_pinfo() points to an array starting with a NULL pointer,
there's going to be a kernel oops as the 'pi' local variable won't get
reassigned from the initial value of NULL. Initialize 'pi' instead to
'&ata_dummy_port_info' to fix the possible kernel oops for good...
Found by Linux Verification Center (linuxtesting.org) with the SVACE static
analysis tool.
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions