summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-22 18:13:48 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-21 09:27:41 +0100
commit5637fad6b1462945ccc8bd9734146c93422590fd (patch)
tree51fe31ea6289df4a1ba1a2fe99966c99507e131f /tools/perf/scripts/python/call-graph-from-postgresql.py
parent6f0cb0e3ec883d19e89800200fe7a24240b0b0b8 (diff)
e1000: avoid null pointer dereference on invalid stat type
[ Upstream commit 5983587c8c5ef00d6886477544ad67d495bc5479 ] Currently if the stat type is invalid then data[i] is being set either by dereferencing a null pointer p, or it is reading from an incorrect previous location if we had a valid stat type previously. Fix this by skipping over the read of p on an invalid stat type. Detected by CoverityScan, CID#113385 ("Explicit null dereferenced") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions