diff options
| author | Jacob Keller <[email protected]> | 2013-04-02 13:55:40 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-04-02 16:59:16 -0400 |
| commit | 8facd5fb73c6e960555e5913743dfbb6c3d984a5 (patch) | |
| tree | 2d15a5e9bcf859b437171d17aa8996048bfee634 /include/linux/debugobjects.h | |
| parent | be0e2f1f7d2fb6c49ea29a4f8274b36537c34dba (diff) | |
net: fix smatch warnings inside datagram_poll
Commit 7d4c04fc170087119727119074e72445f2bb192b ("net: add option to enable
error queue packets waking select") has an issue due to operator precedence
causing the bit-wise OR to bind to the sock_flags call instead of the result of
the terniary conditional. This fixes the *_poll functions to work properly. The
old code results in "mask |= POLLPRI" instead of what was intended, which is to
only include POLLPRI when the socket option is enabled.
Signed-off-by: Jacob Keller <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions