mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 06:38:26 -05:00
octeontx2-pf: handle otx2_mbox_get_rsp errors
Adding error pointer check after calling otx2_mbox_get_rsp(). This is similar to the commitbd3110bc10("octeontx2-pf: handle otx2_mbox_get_rsp errors in otx2_flows.c"). Signed-off-by: Chenyuan Yang <chenyuan0y@gmail.com> Fixes:6c40ca957f("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>
This commit is contained in:
committed by
Jakub Kicinski
parent
88fa80021b
commit
688abe1027
@@ -67,6 +67,8 @@ static int rvu_rep_mcam_flow_init(struct rep_dev *rep)
|
||||
|
||||
rsp = (struct npc_mcam_alloc_entry_rsp *)otx2_mbox_get_rsp
|
||||
(&priv->mbox.mbox, 0, &req->hdr);
|
||||
if (IS_ERR(rsp))
|
||||
goto exit;
|
||||
|
||||
for (ent = 0; ent < rsp->count; ent++)
|
||||
rep->flow_cfg->flow_ent[ent + allocated] = rsp->entry_list[ent];
|
||||
|
||||
Reference in New Issue
Block a user