aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorShannon Nelson <[email protected]>2024-02-23 14:27:41 -0800
committerPaolo Abeni <[email protected]>2024-02-27 13:03:32 +0100
commit7662fad348ac54120e9e6443cb0bbe4f3b582219 (patch)
treeb1a1ad1ce2f10926527cdd90a4e1471123d2b601 /scripts/generate_rust_analyzer.py
parenta36b0787f074d7441f66c172745653570e09c320 (diff)
ionic: check cmd_regs before copying in or out
Since we now have potential cases of NULL cmd_regs and info_regs during a reset recovery, and left NULL if a reset recovery has failed, we need to check that they exist before we use them. Most of the cases were covered in the original patch where we verify before doing the ioreadb() for health or cmd status. However, we need to protect a few uses of io mem that could be hit in error recovery or asynchronous threads calls as well (e.g. ethtool or devlink handlers). Fixes: 219e183272b4 ("ionic: no fw read when PCI reset failed") Reviewed-by: Brett Creeley <[email protected]> Signed-off-by: Shannon Nelson <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions