diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-12-18 11:17:37 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-18 12:04:17 -0800 |
commit | eaf4fac478077d4ed57cbca2c044c4b58a96bd98 (patch) | |
tree | 8dc4dc1f04b454a052cc614ea0fd6c2fc00fa1ad /drivers/rtc/rtc-isl12026.c | |
parent | 5d626c879e238be9585bd59a61eb606c9408178a (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/rtc/rtc-isl12026.c')
0 files changed, 0 insertions, 0 deletions