summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorHangyu Hua <hbh25y@gmail.com>2023-09-08 14:19:50 +0800
committerDavid S. Miller <davem@davemloft.net>2023-09-11 08:26:11 +0100
commite4c79810755f66c9a933ca810da2724133b1165a (patch)
tree1726320a13b4cd2a706578df22ee6dfabbd707f2 /Kconfig
parent51fe0a470543f345e3c62b6798929de3ddcedc1d (diff)
net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()
rule_locs is allocated in ethtool_get_rxnfc and the size is determined by rule_cnt from user space. So rule_cnt needs to be check before using rule_locs to avoid NULL pointer dereference. Fixes: 7aab747e5563 ("net: ethernet: mediatek: add ethtool functions to configure RX flows of HW LRO") Signed-off-by: Hangyu Hua <hbh25y@gmail.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions