[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130402.170147.908732674571245473.davem@davemloft.net>
Date: Tue, 02 Apr 2013 17:01:47 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: jacob.e.keller@...el.com
Cc: netdev@...r.kernel.org
Subject: Re: [net-next PATCH v2] net: fix smatch warnings inside
datagram_poll
From: Jacob Keller <jacob.e.keller@...el.com>
Date: Tue, 2 Apr 2013 13:55:40 -0700
> 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 <jacob.e.keller@...el.com>
Much better, applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists