summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorKumar Meiyappan <kumar.meiyappan@microchip.com>2026-04-16 15:46:50 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2026-05-14 22:10:23 -0400
commitaa3b8f56ef27ed72394a752820abdec4608b731c (patch)
tree4e5e96ef66266c96962ff7fb41f65e3134031fc5 /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parent2a8fbcfb04aa9db189bfa3842d4f586aecd0e631 (diff)
scsi: pm8001: Reject non-fatal dump when controller is crashed
pm80xx_get_non_fatal_dump() can be called even after the controller has entered a fatal error state. In that case the forensic memory contents are not safe to access for a non-fatal dump request, and attempting to do so can trigger a call trace. Check controller_fatal_error before reading the non-fatal dump buffer and return -EINVAL when the controller is already in a crashed state. This prevents non-fatal dump collection from running in an invalid controller state. Signed-off-by: Kumar Meiyappan <kumar.meiyappan@microchip.com> Signed-off-by: Sagar Biradar <sagar.biradar@microchip.com> Link: https://patch.msgid.link/20260416154650.415624-1-sagar.biradar@microchip.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions