aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/keyspan_pda.c
diff options
context:
space:
mode:
authorManish Narani <manish.narani@xilinx.com>2020-11-17 12:43:35 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-12 20:18:21 +0100
commit9cc6bf99c64d961da1a1ebb48620eae0f6ac4fbb (patch)
treef887f3130e68f8bcdd9d724d7178d0d5b5ab66f5 /drivers/usb/serial/keyspan_pda.c
parente698e1478be7c497c06b01099cd70a252d795810 (diff)
downloadkernel_replicant_linux-9cc6bf99c64d961da1a1ebb48620eae0f6ac4fbb.tar.gz
kernel_replicant_linux-9cc6bf99c64d961da1a1ebb48620eae0f6ac4fbb.tar.bz2
kernel_replicant_linux-9cc6bf99c64d961da1a1ebb48620eae0f6ac4fbb.zip
usb: gadget: u_ether: Fix MTU size mismatch with RX packet size
commit 0a88fa221ce911c331bf700d2214c5b2f77414d3 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: bba787a860fa ("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>
Diffstat (limited to 'drivers/usb/serial/keyspan_pda.c')
0 files changed, 0 insertions, 0 deletions