From: Yunjian Wang Date: Wed, 27 May 2020 12:11:20 +0000 (+0800) Subject: net/bnxt: fix missed unlock X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=df2123474d3cded53e5c4898d8e0ce38d396a4f5;p=dpdk.git 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 Acked-by: Somnath Kotur Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_stats.c b/drivers/net/bnxt/bnxt_stats.c index cfe1932849..8df6922f52 100644 --- a/drivers/net/bnxt/bnxt_stats.c +++ b/drivers/net/bnxt/bnxt_stats.c @@ -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);