commit | e8362ea111c4491c36f2a161ac31e6788d0adec4 | [log] [tgz] |
---|---|---|
author | Samuel Obuch <samuel.obuch@codasip.com> | Tue Sep 27 13:21:03 2022 +0200 |
committer | Michal Simek <michal.simek@amd.com> | Wed Oct 05 11:36:54 2022 +0200 |
tree | 68052a42fb5e46b7dde5ea214a9b4eec355b1958 | |
parent | e4fdd457782c5dd54b3a0d46b97aa3cdf53e302e [diff] |
net: emaclite: fix handling for IP packets with specific lengths The maximum length is capped similarly to the emaclite_send function. Avoid integer underflow for values of ip->ip_len < 30, the minimum length of an IP packet is 21 bytes. Signed-off-by: Samuel Obuch <samuel.obuch@codasip.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Link: https://lore.kernel.org/r/20220927112103.155689-3-samuel.obuch@codasip.com Signed-off-by: Michal Simek <michal.simek@amd.com>