net/bnxt: fix missed unlock
Coverity issue: 357741 Fixes: 02a95625fe9c ("net/bnxt: add flow stats in extended stats") Cc: stable@dpdk.org Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Acked-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
parent
2e449a26e7
commit
df2123474d
@ -1008,8 +1008,10 @@ int bnxt_flow_stats_req(struct bnxt *bp)
|
||||
}
|
||||
}
|
||||
|
||||
if (!in_flow_tbl_cnt)
|
||||
if (!in_flow_tbl_cnt) {
|
||||
bnxt_release_flow_lock(bp);
|
||||
goto out;
|
||||
}
|
||||
|
||||
rc = bnxt_update_fc_tbl(bp, counter_type, valid_en_tbl,
|
||||
in_flow_tbl_cnt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user