]> git.baikalelectronics.ru Git - kernel.git/commit
IDR test suite: Check handling negative end correctly
authorMatthew Wilcox <mawilcox@microsoft.com>
Tue, 28 Nov 2017 19:27:14 +0000 (14:27 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Tue, 6 Feb 2018 20:07:20 +0000 (15:07 -0500)
commit83d7af7f75a27872a9ce4c182ecd9cc518245c9d
treee74910fcfe54a903843c6cc4e6931ed80597dbe0
parent1d687171621caaf40af5353bea2cf2c726d75a87
IDR test suite: Check handling negative end correctly

One of the charming quirks of the idr_alloc() interface is that you
can pass a negative end and it will be interpreted as "maximum".  Ensure
we don't break that.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
tools/testing/radix-tree/idr-test.c