Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 7ceec7ed authored by Sebastiano Di Paola's avatar Sebastiano Di Paola Committed by Greg Kroah-Hartman
Browse files

net: packet socket packet_lookup_frame fix


[ Upstream commit f9e69345 ]

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bb450c36
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment