]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2009 09:53:29 +0000 (01:53 -0800)
commit958ea73dfd01ddc530d46b06452c1e74b0d4f387
treec7de02a8257cccc92dc1eef77dee19c8753a0b6e
parent26675e1a2f1da6f87895da3818d9abce9be662ea
net: packet socket packet_lookup_frame fix

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>
net/packet/af_packet.c