]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jul 2021 21:06:16 +0000 (14:06 -0700)
commit5f119ba1d5771bbf46d57cff7417dcd84d3084ba
tree785ff4088a364ea084a89ca6a449df9ce58b0164
parent11d8d98cbeef1496469b268d79938b05524731e8
net: decnet: Fix sleeping inside in af_decnet

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>
net/decnet/af_decnet.c