1
0
Fork 0
alistair23-linux/drivers/usb/gadget/function
Manish Narani 7f875ea988 usb: gadget: u_ether: Fix MTU size mismatch with RX packet size
commit 0a88fa221c upstream.

Fix the MTU size issue with RX packet size as the host sends the packet
with extra bytes containing ethernet header. This causes failure when
user sets the MTU size to the maximum i.e. 15412. In this case the
ethernet packet received will be of length 15412 plus the ethernet header
length. This patch fixes the issue where there is a check that RX packet
length must not be more than max packet length.

Fixes: bba787a860 ("usb: gadget: ether: Allow jumbo frames")
Signed-off-by: Manish Narani <manish.narani@xilinx.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/1605597215-122027-1-git-send-email-manish.narani@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-12 20:16:21 +01:00
..
Makefile
f_acm.c USB: gadget: f_acm: add support for SuperSpeed Plus 2020-12-30 11:50:58 +01:00
f_ecm.c
f_eem.c
f_fs.c usb: gadget: f_fs: Re-use SS descriptors for SuperSpeedPlus 2020-12-30 11:50:58 +01:00
f_hid.c
f_loopback.c
f_mass_storage.c
f_mass_storage.h
f_midi.c USB: gadget: f_midi: setup SuperSpeed Plus descriptors 2020-12-30 11:50:58 +01:00
f_ncm.c usb: gadget: f_ncm: allow using NCM in SuperSpeed Plus gadgets. 2020-10-29 09:58:11 +01:00
f_obex.c
f_phonet.c
f_printer.c usb: gadget: function: printer: Fix a memory leak for interface descriptor 2021-01-12 20:16:20 +01:00
f_rndis.c USB: gadget: f_rndis: fix bitrate for SuperSpeed and above 2020-12-30 11:50:58 +01:00
f_serial.c
f_sourcesink.c
f_subset.c
f_tcm.c usb: gadget: f_tcm: Fix some resource leaks in some error paths 2020-09-03 11:26:56 +02:00
f_uac1.c
f_uac1_legacy.c usb: gadget: function: fix missing spinlock in f_uac1_legacy 2020-07-22 09:33:10 +02:00
f_uac2.c usb: gadget: f_uac2: reset wMaxPacketSize 2021-01-12 20:16:20 +01:00
f_uvc.c
f_uvc.h
g_zero.h
ndis.h
rndis.c
rndis.h
storage_common.c
storage_common.h
tcm.h
u_audio.c
u_audio.h
u_ecm.h
u_eem.h
u_ether.c usb: gadget: u_ether: Fix MTU size mismatch with RX packet size 2021-01-12 20:16:21 +01:00
u_ether.h
u_ether_configfs.h
u_fs.h
u_gether.h
u_hid.h
u_midi.h
u_ncm.h
u_phonet.h
u_printer.h
u_rndis.h
u_serial.c
u_serial.h
u_tcm.h
u_uac1.h
u_uac1_legacy.c
u_uac1_legacy.h
u_uac2.h
u_uvc.h
uvc.h
uvc_configfs.c
uvc_configfs.h
uvc_queue.c
uvc_queue.h
uvc_v4l2.c
uvc_v4l2.h
uvc_video.c
uvc_video.h