net: packet socket packet_lookup_frame fix
Sebastiano Di Paola authored

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: default avatarPaolo Abeni <paolo.abeni@gmail.com>
Signed-off-by: default avatarSebastiano Di Paola <sebastiano.dipaola@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
f9e69345
Name Last commit Last update
..
Kconfig
Makefile
af_packet.c