]> 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)
commit0c2378d02be1976a6d509b4c023e49cc6aecf782
treebde4d7c90d5aa9f91b40d3b0b857ca9bcac0042b
parentb4f6cde88488a340d158f97762b2269b36959937
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: d92f78e7da0e5 ("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