Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

octeontx2-pf: handle otx2_mbox_get_rsp errors

Adding error pointer check after calling otx2_mbox_get_rsp().

This is similar to the commit bd3110bc102a
("octeontx2-pf: handle otx2_mbox_get_rsp errors in otx2_flows.c").

Signed-off-by: Chenyuan Yang <chenyuan0y@gmail.com>
Fixes: 6c40ca957fe5 ("octeontx2-pf: Adds TC offload support")
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/20250412183327.3550970-1-chenyuan0y@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Chenyuan Yang and committed by
Jakub Kicinski
688abe10 88fa8002

+2
+2
drivers/net/ethernet/marvell/octeontx2/nic/rep.c
··· 67 67 68 68 rsp = (struct npc_mcam_alloc_entry_rsp *)otx2_mbox_get_rsp 69 69 (&priv->mbox.mbox, 0, &req->hdr); 70 + if (IS_ERR(rsp)) 71 + goto exit; 70 72 71 73 for (ent = 0; ent < rsp->count; ent++) 72 74 rep->flow_cfg->flow_ent[ent + allocated] = rsp->entry_list[ent];