Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3703ebe4 authored by wangweidong's avatar wangweidong Committed by David S. Miller
Browse files

BNX2: free temp_stats_blk on error path



In bnx2_init_board, missing free temp_stats_blk on error path when
some operations do failed. Just add the 'kfree' operation.

Signed-off-by: default avatarWang Weidong <wangweidong1@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 76973dd7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -8476,6 +8476,8 @@ err_out_disable:
	pci_disable_device(pdev);

err_out:
	kfree(bp->temp_stats_blk);

	return rc;
}