Skip to content

Commit e385134

Browse files
Aarnav JPJerin Jacob
authored andcommitted
net/cnxk: fix illegal access of Rx inject LF
Fix illegal access on error. Fixes: 47cca25 ("net/cnxk: support Rx inject") Cc: [email protected] Signed-off-by: Aarnav JP <[email protected]>
1 parent 75ac929 commit e385134

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/cnxk/cn10k_ethdev_sec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,8 @@ cn10k_eth_sec_rx_inject_config(void *device, uint16_t port_id, bool enable)
13361336
roc_idev_nix_rx_inject_set(port_id, enable);
13371337

13381338
inl_lf = roc_nix_inl_inb_inj_lf_get(nix);
1339+
if (!inl_lf)
1340+
return -ENOTSUP;
13391341
sa_base = roc_nix_inl_inb_sa_base_get(nix, dev->inb.inl_dev);
13401342

13411343
inj_cfg = &dev->inj_cfg;

0 commit comments

Comments
 (0)