summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorZhongqiu Han <quic_zhonhan@quicinc.com>2024-11-05 15:07:35 +0300
committerKrzysztof Wilczyński <kwilczynski@kernel.org>2024-11-16 21:20:11 +0300
commit5089b3d874e9933d9842e90410d3af1520494757 (patch)
tree873a9de54ab9eb70ad88973d19b9dd45c12dc046 /tools/perf/scripts/python/task-analyzer.py
parent9b80bdb10aee04ce7289896e6bdad13e33972636 (diff)
downloadlinux-5089b3d874e9933d9842e90410d3af1520494757.tar.xz
PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio'
If platform_get_resource_byname() fails and returns NULL because DT lacks an 'mmio' property for the MHI endpoint, dereferencing res->start will cause a NULL pointer access. Add a check to prevent it. Fixes: 1bf5f25324f7 ("PCI: endpoint: Add PCI Endpoint function driver for MHI bus") Link: https://lore.kernel.org/r/20241105120735.1240728-1-quic_zhonhan@quicinc.com Signed-off-by: Zhongqiu Han <quic_zhonhan@quicinc.com> [kwilczynski: error message update per the review feedback] Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> [bhelgaas: commit log] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions