net: stmmac: sanitise stmmac_is_jumbo_frm()
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
| Patch | Maxime Chevallier |
|---|---|
| Series | R-b R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/2] net: stmmac: sanitise stmmac_is_jumbo_frm()
stmmac_is_jumbo_frm() takes skb->len, which is unsigned int, but the parameter is passed as an "int" and then tested using signed comparisons. This can cause bugs. Change the parameter to be unsigned.
Also arrange for it to return a bool.
drivers/net/ethernet/stmicro/stmmac/chain_mode.c | 9 ++++----- drivers/net/ethernet/stmicro/stmmac/hwif.h | 2 +- drivers/net/ethernet/stmicro/stmmac/ring_mode.c | 9 ++------- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 +++--- 4 files changed, 10 insertions(+), 16 deletions(-)
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!