Files
Linux/lib
Eric Dumazet bc9ae2247a radix-tree: must check __radix_tree_preload() return value
__radix_tree_preload() only disables preemption if no error is returned.

So we really need to make sure callers always check the return value.

idr_preload() contract is to always disable preemption, so we need
to add a missing preempt_disable() if an error happened.

Similarly, ida_pre_get() only needs to call preempt_enable() in the
case no error happened.

Link: http://lkml.kernel.org/r/[email protected]
Fixes: 0a835c4f09 ("Reimplement IDR and IDA using the radix tree")
Fixes: 7ad3d4d85c ("ida: Move ida_bitmap to a percpu variable")
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: <[email protected]>    [4.11+]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2017-09-08 18:26:49 -07:00
..
2017-02-24 17:46:57 -08:00
…
…
…
…
…
…
2015-11-23 09:44:58 +01:00
2017-03-30 09:37:20 +02:00
…
…
…
2017-06-09 11:52:07 +02:00
…
…
…
2017-02-24 17:46:57 -08:00
…
…
…
…
…
…
2017-02-24 17:46:57 -08:00
…
…
…
…
2016-12-06 10:17:03 +02:00
2015-03-23 22:12:08 -04:00
2017-05-15 23:40:22 -04:00
…
…
…
2016-08-02 17:31:41 -04:00