summaryrefslogtreecommitdiff
path: root/drivers/misc/mic/vop
diff options
context:
space:
mode:
authorJose Abreu <Jose.Abreu@synopsys.com>2019-12-18 11:17:37 +0100
committerDavid S. Miller <davem@davemloft.net>2019-12-18 12:04:17 -0800
commiteaf4fac478077d4ed57cbca2c044c4b58a96bd98 (patch)
tree8dc4dc1f04b454a052cc614ea0fd6c2fc00fa1ad /drivers/misc/mic/vop
parent5d626c879e238be9585bd59a61eb606c9408178a (diff)
net: stmmac: Do not accept invalid MTU values
The maximum MTU value is determined by the maximum size of TX FIFO so that a full packet can fit in the FIFO. Add a check for this in the MTU change callback. Also check if provided and rounded MTU does not passes the maximum limit of 16K. Changes from v2: - Align MTU before checking if its valid Fixes: 7ac6653a085b ("stmmac: Move the STMicroelectronics driver") Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/misc/mic/vop')
0 files changed, 0 insertions, 0 deletions