tipc: correct problems with misleading flags returned using poll()
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 17 Aug 2010 11:00:06 +0000 (11:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Aug 2010 00:31:53 +0000 (17:31 -0700)
commitf662c07058f7e6365ae65080d772f9122f6f50a9
tree17a8ad3e5e432998d42b25891569f17025cf2b41
parent35997e3157eba16c6124d440bdf9272087129b2a
tipc: correct problems with misleading flags returned using poll()

Prevent TIPC from incorrectly setting returned flags to poll()
in the following cases:

- an unconnected socket no longer indicates that it is always readable

- an unconnected, connecting, or listening socket no longer indicates
  that it is always writable

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c