Skip to content
Commit 423221d1 authored by John W. Linville's avatar John W. Linville Committed by Jens Axboe
Browse files

nbd: fix incorrect unlock of nbd->sock_lock in sock_shutdown

Commit 0eadf37a

 ("nbd: allow block mq to deal with timeouts")
changed normal usage of nbd->sock_lock to use spin_lock/spin_unlock
rather than the *_irq variants, but it missed this unlock in an
error path.

Found by Coverity, CID 1373871.

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Cc: Josef Bacik <jbacik@fb.com>
Cc: Jens Axboe <axboe@fb.com>
Cc: Markus Pargmann <mpa@pengutronix.de>
Fixes: 0eadf37a

 ("nbd: allow block mq to deal with timeouts")
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent b4a1278c
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