Dan Carpenter e7e7104e2d net: ethernet: mtk_eth_soc: out of bounds read in mtk_hwlro_get_fdir_entry()
The "fsp->location" variable comes from user via ethtool_get_rxnfc().
Check that it is valid to prevent an out of bounds read.

Fixes: 7aab747e5563 ("net: ethernet: mediatek: add ethtool functions to configure RX flows of HW LRO")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-05-27 07:59:41 +01:00
..
2022-05-02 13:57:56 -07:00
2022-05-06 12:07:56 +01:00
2022-05-20 17:38:27 -07:00
2022-05-11 13:09:59 +01:00
2022-05-05 15:54:12 -07:00
2022-05-16 10:18:56 +01:00