diff options
| author | Lizhi Hou <[email protected]> | 2023-09-29 17:10:48 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2023-09-29 22:33:46 +0000 |
| commit | 33efa29e825636a06d5711c9dfccf92726d2fc81 (patch) | |
| tree | 889344961aba955a640d9674564cb838697d17c2 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | PCI: qcom: Fix IPQ8074 enumeration (diff) | |
| download | kernel-33efa29e825636a06d5711c9dfccf92726d2fc81.tar.gz kernel-33efa29e825636a06d5711c9dfccf92726d2fc81.zip | |
PCI: of_property: Handle interrupt parsing failures
of_pci_prop_intr_map() uses uninitialized addr_sz[] values if
of_irq_parse_raw() fails, which leads to intermittent crashes.
Clear addr_sz[] before use so we never use uninitialized elements.
If no valid IRQs are parsed, don't bother adding the interrupt-map
property.
Fixes: 407d1a51921e ("PCI: Create device tree node for bridge")
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Jonathan Cameron <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Reported-by: Herve Codina <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Lizhi Hou <[email protected]>
[bhelgaas: commit log, add similar report from Herve]
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Herve Codina <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
0 files changed, 0 insertions, 0 deletions
