mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 15:34:48 +08:00
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 @@ err_out_disable:
|
||||
pci_disable_device(pdev);
|
||||
|
||||
err_out:
|
||||
kfree(bp->temp_stats_blk);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user