]> git.baikalelectronics.ru Git - kernel.git/commit
elevator: fix unnecessary put of elevator in failure case
authorJens Axboe <axboe@fb.com>
Thu, 19 Jan 2017 14:10:13 +0000 (07:10 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 19 Jan 2017 14:43:05 +0000 (07:43 -0700)
commit2032efa824469946a6c7c937396012b64e2ce274
tree0faf9b2eea4e7bfddb03861f6a42cefb17b92e5d
parentdbb90d9a35d80388e53c4e8d0fc06e19fb80b616
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: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: dc877dbd088f ("blk-mq-sched: add framework for MQ capable IO schedulers")
Signed-off-by: Jens Axboe <axboe@fb.com>
block/elevator.c