diff options
author | Justin Tee <justin.tee@broadcom.com> | 2023-10-31 12:12:20 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-11-15 09:52:58 -0500 |
commit | 57ea41eb7fe6d6a6bf80f40de9acddb33b41eeb9 (patch) | |
tree | 6329c9def5536c8f42fea822dde79fb3f9c28591 /scripts/gdb/linux/utils.py | |
parent | e07ac2d2aa5fce0cefe7273f6b9babec1e9a1503 (diff) |
scsi: lpfc: Return early in lpfc_poll_eratt() when the driver is unloading
Add a check in lpfc_poll_eratt() when the driver is unloading. There is no
point to check for error attention events if the driver is rmmod'ed.
If the driver is reloaded, as part of insmod initialization, then a fresh
reset is always asserted to start clean and free of error attention events.
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20231031191224.150862-6-justintee8345@gmail.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions