diff options
| author | Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> | 2026-04-28 15:27:10 +0200 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2026-10-13 14:51:56 -0500 |
| commit | 09425f5919473bb20bad8cbc9908e34c79c8b642 (patch) | |
| tree | dab6c83fbb0888d8283937c3f1897a87aa49a783 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | e473e430ec31e2605227eb5e30be3712d6338da1 (diff) | |
PCI: mvebu: Keep child node refcnt for probe duration
Driver in probe() first iterates over child device nodes, storing the OF
node pointer but does not take the reference to it for the remaining part
of the probe where it is used.
The pointer thus could become invalid if children OF nodes are being
removed from the Devicetree, e.g. by removing OF overlay, while the probe
is being executed. That's a highly theoretical issue, thus it does not
look like bug with any effect.
Nevertheless, make the code logically correct, so acquire the OF node
refcnt for entire lifetime of the device, since the pointer is stored in
each port state container structure.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260428132708.95998-4-krzysztof.kozlowski@oss.qualcomm.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
