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: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
wangweidong 2015-10-13 10:05:19 +08:00 committed by David S. Miller
parent 76973dd79f
commit 3703ebe403
1 changed files with 2 additions and 0 deletions

View File

@ -8476,6 +8476,8 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
pci_disable_device(pdev);
err_out:
kfree(bp->temp_stats_blk);
return rc;
}