aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2021-05-19 14:20:27 +0000
committerMartin K. Petersen <[email protected]>2021-05-21 20:28:24 +0000
commit8c7e7b8486cda21269d393245883c5e4737d5ee7 (patch)
tree5b2b11dce0f63f92015ceaffc155d92a2ca57c70 /tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py
parentscsi: target: tcmu: Fix xarray RCU warning (diff)
downloadkernel-8c7e7b8486cda21269d393245883c5e4737d5ee7.tar.gz
kernel-8c7e7b8486cda21269d393245883c5e4737d5ee7.zip
scsi: libsas: Use _safe() loop in sas_resume_port()
If sas_notify_lldd_dev_found() fails then this code calls: sas_unregister_dev(port, dev); which removes "dev", our list iterator, from the list. This could lead to an endless loop. We need to use list_for_each_entry_safe(). Link: https://lore.kernel.org/r/YKUeq6gwfGcvvhty@mwanda Fixes: 303694eeee5e ("[SCSI] libsas: suspend / resume support") Reviewed-by: John Garry <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py')
0 files changed, 0 insertions, 0 deletions