summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>2026-04-28 15:27:10 +0200
committerBjorn Helgaas <bhelgaas@google.com>2026-10-13 14:51:56 -0500
commit09425f5919473bb20bad8cbc9908e34c79c8b642 (patch)
treedab6c83fbb0888d8283937c3f1897a87aa49a783 /rust/kernel/alloc
parente473e430ec31e2605227eb5e30be3712d6338da1 (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 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions