When debugging an issue found in drm subsystem (link to the
discussion in Link tag), a bug was found in idr library
where requesting id in range would return id outside
requested range. Didn't see in documentation that this is how
idr should behave.
This is an RFC as this library is deprecated but still in use by other
subsystems. Is this fix proper?
Link: https://lists.freedesktop.org/archives/dri-devel/2025-November/538294.html
Cc: "Christian König" <christian.koenig@amd.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
---
Jan Sokolowski (1):
idr: do not create idr if new id would be outside given range
lib/idr.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
--
2.43.0