Skip to content
Commit a2614255 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: fix elevator_get_by_features()



The lookup logic is broken - 'e' will never be NULL, even if the
list is empty. Maintain lookup hit in a separate variable instead.

Fixes: a0958ba7 ("block: Improve default elevator selection")
Reported-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ebddd2a1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment