mirror of https://gitee.com/openkylin/linux.git
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:
parent
76973dd79f
commit
3703ebe403
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue