Skip to content

Commit 688abe1

Browse files
WhiteFox-Projectkuba-moo
authored andcommitted
octeontx2-pf: handle otx2_mbox_get_rsp errors
Adding error pointer check after calling otx2_mbox_get_rsp(). This is similar to the commit bd3110b ("octeontx2-pf: handle otx2_mbox_get_rsp errors in otx2_flows.c"). Signed-off-by: Chenyuan Yang <[email protected]> Fixes: 6c40ca9 ("octeontx2-pf: Adds TC offload support") Reviewed-by: Michal Swiatkowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 88fa800 commit 688abe1

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/marvell/octeontx2/nic

1 file changed

+2
-0
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/rep.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ static int rvu_rep_mcam_flow_init(struct rep_dev *rep)
6767

6868
rsp = (struct npc_mcam_alloc_entry_rsp *)otx2_mbox_get_rsp
6969
(&priv->mbox.mbox, 0, &req->hdr);
70+
if (IS_ERR(rsp))
71+
goto exit;
7072

7173
for (ent = 0; ent < rsp->count; ent++)
7274
rep->flow_cfg->flow_ent[ent + allocated] = rsp->entry_list[ent];

0 commit comments

Comments
 (0)