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-23 14:14:50 -07:00
2022-05-23 20:49:45 -07:00
2022-05-15 18:31:28 -06:00
2022-05-24 14:50:54 -07:00
2022-04-08 12:59:43 -07:00
2022-05-25 12:22:58 -07:00
2022-05-24 19:55:07 -07:00
2022-05-24 15:21:15 -07:00
2022-04-07 06:35:34 -10:00
2022-04-28 14:50:09 +02:00
2022-05-24 16:19:30 -07:00
2022-05-21 13:58:43 -10:00
2022-05-20 18:48:54 +02:00
2022-05-23 14:04:14 -07:00
2022-05-25 12:22:58 -07:00
2022-05-24 14:56:38 -07:00
2022-05-24 15:13:30 -07:00
2022-05-23 14:04:14 -07:00
2022-05-24 15:46:55 -07:00
2022-05-23 21:06:11 -07:00
2022-05-23 20:56:17 -07:00
2022-05-25 12:22:58 -07:00
2022-05-25 12:22:58 -07:00
2022-05-18 20:55:34 +02:00
2022-05-24 15:13:30 -07:00
2022-05-11 08:29:11 +03:00
2022-05-25 12:22:58 -07:00
2022-05-23 13:56:39 -07:00
2022-05-25 10:32:08 -07:00
2022-05-18 12:31:31 -04:00
2022-05-23 17:38:01 -07:00
2022-04-05 10:40:52 -07:00
2022-03-31 14:14:03 -07:00