Files
twx-linux/include/linux
NeilBrown eafacef7ee Fix termination state for idr_for_each_entry_ul()
[ Upstream commit e8ae8ad479 ]

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: e33d2b74d8 ("idr: fix overflow case for idr_for_each_entry_ul()")
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Chris Mi <chrism@mellanox.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:06:56 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2023-08-26 15:26:49 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-05-26 09:16:44 +02:00
…
…
2022-10-26 13:25:35 +02:00
…
…
2020-05-24 20:48:11 +02:00
…
…
2023-10-10 21:53:37 +02:00
2020-10-02 15:00:49 -07:00
…
…
…
…
2020-10-16 17:21:51 +02:00
2018-03-26 15:09:38 +02:00
2018-08-22 10:52:48 -07:00
…
2020-03-09 11:12:19 +01:00
…
2016-10-28 08:48:16 -06:00
2019-12-03 11:20:37 +01:00
…
2020-06-16 19:25:20 +02:00
…
…
2019-02-28 03:28:53 -05:00
2018-01-01 12:40:27 -07:00
…
…
…
…
2020-08-12 20:42:08 +02:00
…
…
…
…
2020-03-06 11:06:15 +01:00
2019-02-15 16:54:38 +01:00
…
…
…
…
2010-02-09 11:13:56 +01:00
…
…
…
…
2020-07-24 17:12:41 -07:00
…
…
…
…
…
…
…
…
2019-06-26 13:19:46 -07:00
2019-10-04 12:31:46 -07:00
2019-10-15 13:34:25 +02:00
…
2023-10-25 11:54:20 +02:00
…
2022-10-26 13:25:42 +02:00
2018-06-22 13:43:27 +09:00
2020-09-16 08:54:53 -05:00
…
2023-03-17 08:45:07 +01:00
…
2023-03-17 08:45:07 +01:00
2020-08-26 12:41:56 +02:00
…
2020-11-19 22:38:29 -05:00
…
…
2019-12-04 19:44:14 -08:00
2020-06-02 15:15:46 +01:00
…
2019-12-11 09:12:38 +01:00
2021-03-04 11:37:59 +01:00
2022-08-21 15:16:08 +02:00
…
…
…
2020-09-04 09:25:20 -07:00
2021-02-07 15:37:17 +01:00
…
…
…
2020-05-08 00:12:42 +02:00
…
…
2018-04-12 09:41:19 -07:00
2019-03-07 18:32:03 -08:00
2018-06-07 17:34:35 -07:00
…
…
2022-08-21 15:15:21 +02:00
2020-09-04 12:46:07 +01:00
2021-06-30 08:47:26 -04:00
2020-08-27 16:06:47 -04:00
2019-08-14 15:30:35 +02:00
…
…
2023-01-04 11:39:16 +01:00
2019-11-14 19:06:47 -08:00
2018-10-17 13:56:58 -07:00
2023-11-20 11:06:46 +01:00
2023-06-21 15:45:38 +02:00
2020-10-07 14:28:39 -04:00
…
…
…
…
2020-05-09 13:57:12 +02:00
…
…
2019-02-08 15:02:49 -08:00
2023-08-26 15:26:57 +02:00
…
…
…
…
…
…
…
…
…
2018-10-21 10:46:39 -04:00
…
2020-05-15 13:51:28 -07:00
2017-11-09 10:23:28 +01:00
…
…
…
…
…
2021-03-30 14:32:05 +02:00
2020-10-18 09:27:10 -07:00
…
…
…
…
2018-10-08 22:53:10 +11:00
…
…
…
…
…
2018-07-20 01:11:45 +02:00
…
2023-10-25 11:54:13 +02:00
2023-10-25 11:54:13 +02:00
…
2020-08-18 17:06:15 +02:00
…
…
…
2018-09-25 20:17:35 -07:00
…
…
…
…
…
…
…
…
…
…
…
2018-07-07 17:25:23 +02:00
…
…
…
2020-09-26 22:55:05 -04:00
…
…
…
2021-05-07 11:04:32 +02:00
…
…
…
2018-10-11 09:16:44 -07:00
…
…
…
…
2023-05-17 11:48:09 +02:00
…
…
2021-05-14 09:50:31 +02:00
2020-07-04 09:35:36 -05:00
2020-09-10 14:03:31 -07:00
…
2023-10-25 11:54:21 +02:00
…
…
…
…
…
…
…
…
2020-10-05 13:21:49 +02:00
…
…
…
2017-08-15 09:02:08 -07:00