aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJakob Koschel <[email protected]>2022-03-31 22:03:48 +0000
committerJens Axboe <[email protected]>2022-03-31 23:08:04 +0000
commit901aeda62efa21f2eae937bccb71b49ae531be06 (patch)
tree45aa82f18d64a0a32fed1180786023e345cae3eb /net/unix/af_unix.c
parentnbd: fix possible overflow on 'first_minor' in nbd_dev_add() (diff)
downloadkernel-901aeda62efa21f2eae937bccb71b49ae531be06.tar.gz
kernel-901aeda62efa21f2eae937bccb71b49ae531be06.zip
drbd: remove usage of list iterator variable after loop
In preparation to limit the scope of a list iterator to the list traversal loop, use a dedicated pointer to iterate through the list [1]. Since that variable should not be used past the loop iteration, a separate variable is used to 'remember the current location within the loop'. To either continue iterating from that position or skip the iteration (if the previous iteration was complete) list_prepare_entry() is used. Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ [1] Signed-off-by: Jakob Koschel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions