OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:26:37 +0000 (15:26 +0100)
commit2c2e31f88e1a1d64eec3fe6786198e03790961b7
tree2c7c0ffb28eb1d431b922af79472950e8ef3bc96
parent12f9404d01d4ca3bbabab334f1933004bdd93715
block: drbd: remove a stray unlock in __drbd_send_protocol()

[ Upstream commit 8e9c523016cf9983b295e4bc659183d1fa6ef8e0 ]

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

Fixes: 44ed167da748 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/block/drbd/drbd_main.c