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

View File

@ -8476,6 +8476,8 @@ err_out_disable:
pci_disable_device(pdev); pci_disable_device(pdev);
err_out: err_out:
kfree(bp->temp_stats_blk);
return rc; return rc;
} }