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:
Родитель
76973dd79f
Коммит
3703ebe403
|
@ -8476,6 +8476,8 @@ err_out_disable:
|
|||
pci_disable_device(pdev);
|
||||
|
||||
err_out:
|
||||
kfree(bp->temp_stats_blk);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче