]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: packet socket packet_lookup_frame fix
authorSebastiano Di Paola <sebastiano.dipaola@gmail.com>
Fri, 30 Jan 2009 23:37:17 +0000 (23:37 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Feb 2009 17:28:55 +0000 (09:28 -0800)
commit3cb569832d1b79a60b5df1b510c1712aa76e7cdd
tree7329fb2d1843ac89c5bdbcb3caa881d8f34b2b56
parentd6283a8094509991b9d72ec8cdea1d6236dd09c6
net: packet socket packet_lookup_frame fix

[ Upstream commit f9e6934502e46c363100245f137ddf0f4b1cb574 ]

packet_lookup_frames() fails to get user frame if current frame header
status contains extra flags.
This is due to the wrong assumption on the operators precedence during
frame status tests.
Fixed by forcing the right operators precedence order with explicit brackets.

Signed-off-by: Paolo Abeni <paolo.abeni@gmail.com>
Signed-off-by: Sebastiano Di Paola <sebastiano.dipaola@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/packet/af_packet.c