summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-vr41xx.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2019-02-27 03:58:53 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-23 08:44:22 +0100
commit7fb2b5380fee29f2e2beeba2b45f3fe6205442dd (patch)
treefebe2e772254c30f11252aa7ec6a0f505ac36029 /drivers/rtc/rtc-vr41xx.c
parent7e7a271035c41b110d89687d842154ddc5705580 (diff)
bnxt_en: Drop oversize TX packets to prevent errors.
[ Upstream commit 2b3c6885386020b1b9d92d45e8349637e27d1f66 ] There have been reports of oversize UDP packets being sent to the driver to be transmitted, causing error conditions. The issue is likely caused by the dst of the SKB switching between 'lo' with 64K MTU and the hardware device with a smaller MTU. Patches are being proposed by Mahesh Bandewar <maheshb@google.com> to fix the issue. In the meantime, add a quick length check in the driver to prevent the error. The driver uses the TX packet size as index to look up an array to setup the TX BD. The array is large enough to support all MTU sizes supported by the driver. The oversize TX packet causes the driver to index beyond the array and put garbage values into the TX BD. Add a simple check to prevent this. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/rtc/rtc-vr41xx.c')
0 files changed, 0 insertions, 0 deletions