net: decnet: Fix sleeping inside in af_decnet
authorYajun Deng <yajun.deng@linux.dev>
Wed, 14 Jul 2021 09:13:20 +0000 (17:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 07:14:27 +0000 (09:14 +0200)
commitbb1546265c4b45c0fba67d34c83c4e185a22dccd
treef35e807fa32ed692c5fb41fa378e0091e27d9edd
parent5c6d8e2f7187b8e45a18c27acb7a3885f03ee3db
net: decnet: Fix sleeping inside in af_decnet

[ Upstream commit 5f119ba1d5771bbf46d57cff7417dcd84d3084ba ]

The release_sock() is blocking function, it would change the state
after sleeping. use wait_woken() instead.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/decnet/af_decnet.c