summaryrefslogtreecommitdiff
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-05-19 17:20:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-03 09:00:50 +0200
commit988439906f6fa243846cd0526bc7175979c89014 (patch)
treead56eb7b533fb8a0eeb38490e60f7da4006d8a40 /scripts/clang-tools/gen_compile_commands.py
parent3a17d8adfa02ea5b1d7719d7dbc5a1727684ee03 (diff)
scsi: libsas: Use _safe() loop in sas_resume_port()
[ Upstream commit 8c7e7b8486cda21269d393245883c5e4737d5ee7 ] 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 <john.garry@huawei.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions