]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge branch 'net-stmmac-sanitise-stmmac_is_jumbo_frm'
authorJakub Kicinski <kuba@kernel.org>
Wed, 19 Nov 2025 16:33:52 +0000 (08:33 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 19 Nov 2025 16:33:52 +0000 (08:33 -0800)
commit865a5d1a29be48875ff68c6ba7e8377180ab8e33
tree4bfc85046d6ffcfedd03f378f08dd38683af3147
parent7ac60a14d3fce87f0bfd0e50a7bfd5e683c33817
parentbf351bbec57fd4d09177974f762cf553a5ef8663
Merge branch 'net-stmmac-sanitise-stmmac_is_jumbo_frm'

Russell King says:

====================
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.
====================

Link: https://patch.msgid.link/aRxDqJSWxOdOaRt4@shell.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>