diff options
| author | NeilBrown <[email protected]> | 2023-10-23 22:53:33 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-11-03 09:12:00 +0000 |
| commit | e8ae8ad479e2d037daa33756e5e72850a7bd37a9 (patch) | |
| tree | 63cfbaade8859bf34de181fe11ba6c086e2b2345 /net/ipv4/tcp_output.c | |
| parent | net: r8169: Disable multicast filter for RTL8168H and RTL8107E (diff) | |
| download | kernel-e8ae8ad479e2d037daa33756e5e72850a7bd37a9.tar.gz kernel-e8ae8ad479e2d037daa33756e5e72850a7bd37a9.zip | |
Fix termination state for idr_for_each_entry_ul()
The comment for idr_for_each_entry_ul() states
after normal termination @entry is left with the value NULL
This is not correct in the case where UINT_MAX has an entry in the idr.
In that case @entry will be non-NULL after termination.
No current code depends on the documentation being correct, but to
save future code we should fix it.
Also fix idr_for_each_entry_continue_ul(). While this is not documented
as leaving @entry as NULL, the mellanox driver appears to depend on
it doing so. So make that explicit in the documentation as well as in
the code.
Fixes: e33d2b74d805 ("idr: fix overflow case for idr_for_each_entry_ul()")
Cc: Matthew Wilcox <[email protected]>
Cc: Chris Mi <[email protected]>
Cc: Cong Wang <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
