Skip to content

Commit

Permalink
net/nfp: fix resource leak for PF initialization
Browse files Browse the repository at this point in the history
[ upstream commit 528812a63c4c2d74ccf2c2f2aa297fcbff3ceea9 ]

Fix the resource leak problem in the abnormal logic of PF initialize
function.

Fixes: 646ea79 ("net/nfp: move PF functions into its own file")
Fixes: 8ba461d1eecc ("net/nfp: introduce keepalive mechanism for multiple PF")

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Peng Zhang <peng.zhang@corigine.com>
  • Loading branch information
hechaoyong authored and kevintraynor committed Apr 3, 2024
1 parent aa99de9 commit 6be826a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/nfp/nfp_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ static int nfp_pf_init(struct rte_pci_device *pci_dev)
return 0;

hwqueues_cleanup:
nfp_cpp_area_free(pf_dev->hwqueues_area);
nfp_cpp_area_release_free(pf_dev->hwqueues_area);
ctrl_area_cleanup:
nfp_cpp_area_free(pf_dev->ctrl_area);
pf_cleanup:
Expand Down

0 comments on commit 6be826a

Please sign in to comment.