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

elevator: fix unnecessary put of elevator in failure case



We already checked that e is NULL, so no point in calling
elevator_put() to free it.

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Fixes: dc877dbd088f ("blk-mq-sched: add framework for MQ capable IO schedulers")
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 38dbb7dd
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