]> git.baikalelectronics.ru Git - kernel.git/commit
block: drbd: remove a stray unlock in __drbd_send_protocol()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Nov 2019 07:48:47 +0000 (10:48 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2019 13:55:22 +0000 (06:55 -0700)
commit29f22a3c095b10ff2d459a06f3f94dd3f47b60b0
treeb8c8d9ae92beeb320dcf4985ea5909815b423839
parent6ecdc3c0c722bb4ff8dff20144ec49e6d50c026d
block: drbd: remove a stray unlock in __drbd_send_protocol()

There are two callers of this function and they both unlock the mutex so
this ends up being a double unlock.

Fixes: b373ea807502 ("drbd: rcu_read_lock() and rcu_dereference() for tconn->net_conf")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_main.c