]> 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)
commit267fc7720b8a7c48b3a8a2fcc2a582574f664526
treeb8c8d9ae92beeb320dcf4985ea5909815b423839
parent186cadd5e5a57a03108419df68f4215f49d5fec8
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: ec5c22383836 ("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