diff options
| author | Steven Rostedt <rostedt@goodmis.org> | 2026-07-21 21:11:43 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2026-07-24 13:43:09 -0400 |
| commit | 144f29e85702234b23d2a62abf723e6a17eb5427 (patch) | |
| tree | 9221093b890a14cfed2b2a1180d9aa3c7e2335c2 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | c1d87e724ae55e781b7cc7ccafb34d9e668582b2 (diff) | |
tracing: Fix mmiotrace possible NULL dereferencing of hiter->dev
If the mmio_pipe_open() fails to find a PCI device, the hiter->dev
will be assigned to NULL. The mmiotrace read() function dereferences the
hiter->dev if hiter exists.
Change the test of the read to not only check hiter being NULL, but also
the hiter->dev before dereferencing it.
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260721211143.36dbd559@gandalf.local.home
Fixes: f984b51e0779 ("ftrace: add mmiotrace plugin")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://sashiko.dev/#/patchset/20260715143604.14481-1-gaikwad.dcg%40gmail.com
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
