net/nfp: fix possible resource leak
PATCH 1/1 net/nfp: fix possible resource leak
Signed-off-by Yangchao Zhou <[email protected]>
--- drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c +1 -0
@@ -816,6 +816,7 @@ struct nfp6000_area_priv {if (fscanf (fp,"0x%lx 0x%lx 0x%lx" , &start, &end, &flags) ==0 ) {printf ("error reading resource file for bar size\n" ); +fclose (fp);return -1 ; }
Signature · 1 line
1.7.1
Acked-by Alejandro Lucero <[email protected]>
Quoted 22 lines · Yangchao Zhou
Signed-off-by Yangchao Zhou <[email protected]>--- drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c +1
-1@@ -816,6 +816,7 @@ struct nfp6000_area_priv {if (fscanf (fp,"0x%lx 0x%lx 0x%lx" , &start, &end, &flags) ==0 ) {printf ("error reading resource file for bar size\n" ); +fclose (fp);return -1 ; } --1.7.1
Ferruh Yigit
AppliedQuoted 2 lines · Alejandro Lucero
On Tue, Apr 17, 2018 at 6:59 AM, Yangchao Zhou <[email protected]> wrote:
Fixes c7e9729da6b5 ("net/nfp: support CPP")
Quoted 3 lines
Quoted 1 line
Signed-off-by Yangchao Zhou <[email protected]>Acked-by Alejandro Lucero <[email protected]>
Applied to dpdk-next-net/master, thanks.