Skip to content
Commit f4cf004d authored by Samuel Obuch's avatar Samuel Obuch Committed by Michal Simek
Browse files

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: default avatarSamuel Obuch <samuel.obuch@codasip.com>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
Link: https://lore.kernel.org/r/20220927112103.155689-3-samuel.obuch@codasip.com


Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
parent 3d170029
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment