diff options
author | Ye Bin <[email protected]> | 2020-05-18 15:44:20 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-05-19 21:54:17 -0400 |
commit | 4dea170f4fb225984b4f2f1cf0a41d485177b905 (patch) | |
tree | 56b5b4f84c3438fc546318c2ccf8931378ca0611 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7ffa5b939751b6638e4a99518775c8503fbb46be (diff) |
scsi: core: Fix incorrect usage of shost_for_each_device
shost_for_each_device(sdev, shost) \
for ((sdev) = __scsi_iterate_devices((shost), NULL); \
(sdev); \
(sdev) = __scsi_iterate_devices((shost), (sdev)))
When terminating shost_for_each_device() iteration with break or return,
scsi_device_put() should be used to prevent stale scsi device references
from being left behind.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Ye Bin <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions