提交 3703ebe4 编写于 作者: W wangweidong 提交者: David S. Miller

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: NWang Weidong <wangweidong1@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 76973dd7
...@@ -8476,6 +8476,8 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev) ...@@ -8476,6 +8476,8 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
pci_disable_device(pdev); pci_disable_device(pdev);
err_out: err_out:
kfree(bp->temp_stats_blk);
return rc; return rc;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册