You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
nfp: fix memory leak on FW load error
Free management FW info when app FW load failed.
Fixes: eefbde7e10 ("nfp: add hwmon support")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
c66a9cf408
commit
47eaa23b4c
@@ -279,6 +279,7 @@ static int nfp_nsp_init(struct pci_dev *pdev, struct nfp_pf *pf)
|
||||
|
||||
err = nfp_fw_load(pdev, pf, nsp);
|
||||
if (err < 0) {
|
||||
kfree(pf->nspi);
|
||||
kfree(pf->eth_tbl);
|
||||
dev_err(&pdev->dev, "Failed to load FW\n");
|
||||
goto exit_close_nsp;
|
||||
|
||||
Reference in New Issue
Block a user