]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: txgbe: leave space for null terminators on property_entry
authorFabio Baltieri <fabio.baltieri@gmail.com>
Sun, 5 Apr 2026 22:20:13 +0000 (23:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Apr 2026 11:30:42 +0000 (13:30 +0200)
commit92c09262dac565a6b831fd724b81fe4ff76f51b4
treebd88c22651d3d35ae0bc15d4829a043b319f864b
parent95a1334748c95dd15546056280ade0c4b8dd7b78
net: txgbe: leave space for null terminators on property_entry

[ Upstream commit 5a37d228799b0ec2c277459c83c814a59d310bc3 ]

Lists of struct property_entry are supposed to be terminated with an
empty property, this driver currently seems to be allocating exactly the
amount of entry used.

Change the struct definition to leave an extra element for all
property_entry.

Fixes: c3e382ad6d15 ("net: txgbe: Add software nodes to support phylink")
Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
Tested-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://patch.msgid.link/20260405222013.5347-1-fabio.baltieri@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h