Pavel Sakharov
8e29f988ad
net: stmmac: Fix incorrect dereference in interrupt handlers
...
[ Upstream commit 97dde84026339e4b4af9a6301f825d1828d7874b ]
If 'dev' or 'data' is NULL, the 'priv' variable has an incorrect address
when dereferencing calling netdev_err().
Since we get as 'dev_id' or 'data' what was passed as the 'dev' argument
to request_irq() during interrupt initialization (that is, the net_device
and rx/tx queue pointers initialized at the time of the call) and since
there are usually no checks for the 'dev_id' argument in such handlers
in other drivers, remove these checks from the handlers in stmmac driver.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 8532f613bc ("net: stmmac: introduce MSI Interrupt routines for mac, safety, RX & TX")
Signed-off-by: Pavel Sakharov <p.sakharov@ispras.ru >
Reviewed-by: Serge Semin <fancer.lancer@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2024-03-01 13:26:36 +01:00
..
2024-02-05 20:12:47 +00:00
2023-09-13 09:42:56 +02:00
2024-02-23 09:12:39 +01:00
2024-03-01 13:26:31 +01:00
2024-02-16 19:06:26 +01:00
2023-12-08 08:51:16 +01:00
2024-02-23 09:12:47 +01:00
2024-03-01 13:26:30 +01:00
2024-02-05 20:12:53 +00:00
2024-02-23 09:12:48 +01:00
2024-01-31 16:16:58 -08:00
2024-02-05 20:12:57 +00:00
2024-01-25 15:27:39 -08:00
2023-10-19 23:08:58 +02:00
2024-01-31 16:17:08 -08:00
2023-09-13 09:42:48 +02:00
2024-03-01 13:26:32 +01:00
2024-03-01 13:26:31 +01:00
2024-02-05 20:12:47 +00:00
2024-03-01 13:26:26 +01:00
2023-12-08 08:51:15 +01:00
2024-01-25 15:27:18 -08:00
2023-09-13 09:42:53 +02:00
2024-03-01 13:26:30 +01:00
2024-03-01 13:26:29 +01:00
2023-09-13 09:42:54 +02:00
2024-01-31 16:17:11 -08:00
2024-03-01 13:26:36 +01:00
2024-02-23 09:12:33 +01:00
2023-11-20 11:51:58 +01:00
2023-09-13 09:42:59 +02:00
2024-03-01 13:26:29 +01:00
2023-09-19 12:28:05 +02:00
2024-01-20 11:50:11 +01:00
2024-02-23 09:12:35 +01:00
2024-02-05 20:12:58 +00:00
2023-10-10 22:00:44 +02:00
2024-02-23 09:12:41 +01:00
2024-03-01 13:26:35 +01:00
2024-03-01 13:26:28 +01:00
2024-02-23 09:12:34 +01:00
2024-01-25 15:27:43 -08:00
2024-03-01 13:26:32 +01:00
2023-08-16 18:27:26 +02:00
2024-02-05 20:12:57 +00:00
2024-02-05 20:12:58 +00:00
2023-11-28 17:07:13 +00:00
2024-03-01 13:26:33 +01:00
2024-02-23 09:12:41 +01:00
2024-02-05 20:12:58 +00:00
2024-03-01 13:26:27 +01:00
2024-02-23 09:12:45 +01:00
2024-02-16 19:06:29 +01:00
2024-03-01 13:26:36 +01:00
2023-09-13 09:43:02 +02:00
2023-11-20 11:52:05 +01:00
2024-03-01 13:26:28 +01:00
2023-11-02 09:35:31 +01:00
2024-02-23 09:12:52 +01:00
2024-01-31 16:16:58 -08:00
2024-01-31 16:16:59 -08:00
2024-01-20 11:50:11 +01:00
2024-03-01 13:26:33 +01:00
2023-11-20 11:52:13 +01:00
2023-11-20 11:52:01 +01:00
2024-02-16 19:06:25 +01:00
2024-01-20 11:50:09 +01:00
2024-03-01 13:26:32 +01:00
2024-02-05 20:12:47 +00:00
2024-01-25 15:27:45 -08:00
2023-12-13 18:39:21 +01:00
2023-11-28 17:07:05 +00:00
2024-01-25 15:27:42 -08:00
2024-03-01 13:26:26 +01:00
2024-01-20 11:50:07 +01:00
2024-01-31 16:16:59 -08:00
2024-01-31 16:17:01 -08:00
2024-03-01 13:26:31 +01:00
2024-03-01 13:26:35 +01:00
2024-03-01 13:26:30 +01:00
2023-12-20 17:00:25 +01:00
2024-03-01 13:26:27 +01:00
2024-02-05 20:12:58 +00:00
2024-02-23 09:12:40 +01:00
2024-03-01 13:26:31 +01:00
2023-12-13 18:39:12 +01:00
2024-01-31 16:17:09 -08:00
2024-01-01 12:39:08 +00:00
2024-03-01 13:26:33 +01:00
2024-03-01 13:26:30 +01:00
2024-01-20 11:50:10 +01:00
2024-03-01 13:26:34 +01:00
2024-01-25 15:27:47 -08:00
2024-03-01 13:26:35 +01:00
2024-02-16 19:06:31 +01:00
2024-03-01 13:26:25 +01:00
2023-11-20 11:52:13 +01:00
2023-11-02 09:35:23 +01:00
2024-02-05 20:12:56 +00:00
2024-02-05 20:12:58 +00:00