Re: [PATCH 3/3] net: emaclite: fix handling for IP packets with specific lengths

2022-08-08 Thread Michal Simek
On 8/6/22 19:35, Ramon Fried wrote: On Wed, Jul 13, 2022 at 5:02 PM Samuel Obuch wrote: 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

Re: [PATCH 3/3] net: emaclite: fix handling for IP packets with specific lengths

2022-08-06 Thread Ramon Fried
On Wed, Jul 13, 2022 at 5:02 PM Samuel Obuch wrote: > > 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 > --- > drivers/net/xilinx_emac

[PATCH 3/3] net: emaclite: fix handling for IP packets with specific lengths

2022-07-13 Thread Samuel Obuch
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 --- drivers/net/xilinx_emaclite.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) dif