]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mtk_ppe: fix possible NULL pointer dereference in mtk_flow_get_wdma_info
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 18 Jul 2022 09:51:53 +0000 (11:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 Jul 2022 00:27:18 +0000 (17:27 -0700)
commit24044e71fefe3132af0ba3ea7123b05a68c39d75
treebde4d7c90d5aa9f91b40d3b0b857ca9bcac0042b
parent2053ece3ffe22c1a56645fec5fb172242008445c
net: ethernet: mtk_ppe: fix possible NULL pointer dereference in mtk_flow_get_wdma_info

odev pointer can be NULL in mtk_flow_offload_replace routine according
to the flower action rules. Fix possible NULL pointer dereference in
mtk_flow_get_wdma_info.

Fixes: 66e94116faff8 ("net: ethernet: mtk_eth_soc: implement flow offloading to WED devices")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/4e1685bc4976e21e364055f6bee86261f8f9ee93.1658137753.git.lorenzo@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_ppe_offload.c