net: airoha: Always check return value from airoha_ppe_foe_get_entry()
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 18 Jun 2025 07:37:40 +0000 (09:37 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Jun 2025 15:34:13 +0000 (08:34 -0700)
commit78bd03ee1f20a267d2c218884b66041b3508ac9c
treeb7c200f7ed503950de643f1062fe8c751533f493
parentfc27ab48904ceb7e4792f0c400f1ef175edf16fe
net: airoha: Always check return value from airoha_ppe_foe_get_entry()

airoha_ppe_foe_get_entry routine can return NULL, so check the returned
pointer is not NULL in airoha_ppe_foe_flow_l2_entry_update()

Fixes: b81e0f2b58be3 ("net: airoha: Add FLOW_CLS_STATS callback support")
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20250618-check-ret-from-airoha_ppe_foe_get_entry-v2-1-068dcea3cc66@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_ppe.c