]> git.baikalelectronics.ru Git - kernel.git/commit
block: drop device references in bsg_queue_rq()
authorMartin Wilck <mwilck@suse.com>
Mon, 23 Sep 2019 14:02:02 +0000 (14:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Sep 2019 17:17:24 +0000 (11:17 -0600)
commitf5bf56825f5ed3fe5bf9c9f785b1614f4d340f6a
tree408e14effb0c002d652c057826fd0f0f1c25805e
parentdb49a961fd6263922f06499ed854ba80e7aeb733
block: drop device references in bsg_queue_rq()

Make sure that bsg_queue_rq() calls put_device() if an error is
encountered after get_device() was successful.

Fixes: ed218a1afed6 ("bsg: convert to use blk-mq")
Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bsg-lib.c