diff options
author | Xie He <[email protected]> | 2020-10-31 11:10:42 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2020-11-03 15:19:14 -0800 |
commit | 77124c4463d45083e69b7284415467737f31f76b (patch) | |
tree | dd5a3fe0330d867c74251a8518ae0db4c3ccd1cf /tools/perf/scripts/python | |
parent | efc790394f8ac7645d80c44f9cc110779428fe7b (diff) |
net: hdlc_fr: Improve the initial checks when we receive an skb
1.
Change the skb->len check from "<= 4" to "< 4".
At first we only need to ensure a 4-byte header is present. We indeed
normally need the 5th byte, too, but it'd be more logical and cleaner
to check its existence when we actually need it.
2.
Add an fh->ea2 check to the initial checks in fr_rx. fh->ea2 == 1 means
the second address byte is the final address byte. We only support the
case where the address length is 2 bytes.
Cc: Krzysztof Halasa <[email protected]>
Signed-off-by: Xie He <[email protected]>
Acked-by: Willem de Bruijn <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions