summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKumar Meiyappan <kumar.meiyappan@microchip.com>2026-04-16 18:46:50 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2026-05-15 05:10:23 +0300
commitaa3b8f56ef27ed72394a752820abdec4608b731c (patch)
tree4e5e96ef66266c96962ff7fb41f65e3134031fc5 /scripts
parent2a8fbcfb04aa9db189bfa3842d4f586aecd0e631 (diff)
downloadlinux-aa3b8f56ef27ed72394a752820abdec4608b731c.tar.xz
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 'scripts')
0 files changed, 0 insertions, 0 deletions