diff options
author | Chen Wang <unicorn_wang@outlook.com> | 2025-09-12 10:36:01 +0800 |
---|---|---|
committer | Manivannan Sadhasivam <mani@kernel.org> | 2025-09-19 23:39:38 +0530 |
commit | 49a6c160ad4812476f8ae1a8f4ed6d15adfa6c09 (patch) | |
tree | 7bc21a8cb4ce0b0bffc017fcf1bcc346a46470f5 /scripts/generate_rust_analyzer.py | |
parent | 4e4a4f58bed19e1a3a5a7c3a18ce3b927b76fcd3 (diff) |
PCI: cadence: Check for the existence of cdns_pcie::ops before using it
cdns_pcie::ops might not be populated by all the Cadence glue drivers. This
is going to be true for the upcoming Sophgo platform which doesn't set the
ops.
Hence, add a check to prevent NULL pointer dereference.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
[mani: reworded subject and description]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/35182ee1d972dfcd093a964e11205efcebbdc044.1757643388.git.unicorn_wang@outlook.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions