]> 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)
commite652e5c1ad41dd413f3637e83591170e82a7af3d
tree785ff4088a364ea084a89ca6a449df9ce58b0164
parent35c99de98a1c499b7804128efa008e59c95aefde
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