]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix broken tipc_poll() function
authorJon Maloy <jon.maloy@ericsson.com>
Thu, 19 Oct 2017 14:42:04 +0000 (16:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Oct 2017 11:27:05 +0000 (12:27 +0100)
commitde3d2d8d97e5ea641fbd30d385d5c2fb7dabcc72
treed52c07e0c68976685188efcf5f384aed1184d297
parent9ba0914f1c4655d0e0bccb3d394b09f3e33e9b3f
tipc: fix broken tipc_poll() function

In commit e5b1bea1c542 ("tipc: receive group membership events via
member socket") we broke the tipc_poll() function by checking the
state of the receive queue before the call to poll_sock_wait(), while
relying that state afterwards, when it might have changed.

We restore this in this commit.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c