projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
poll: add poll_requested_events() and poll_does_not_wait() functions
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
net
/
unix
/
af_unix.c
diff --git
a/net/unix/af_unix.c
b/net/unix/af_unix.c
index eb4277c3318875ca0799dcbaf597f735709e0631..d510353ef4310598b031b5122ecb99b2b719ad53 100644
(file)
--- a/
net/unix/af_unix.c
+++ b/
net/unix/af_unix.c
@@
-2206,7
+2206,7
@@
static unsigned int unix_dgram_poll(struct file *file, struct socket *sock,
}
/* No write status requested, avoid expensive OUT tests. */
- if (
wait && !(wait->key & (POLLWRBAND | POLLWRNORM |
POLLOUT)))
+ if (
!(poll_requested_events(wait) & (POLLWRBAND|POLLWRNORM|
POLLOUT)))
return mask;
writable = unix_writable(sk);