mirror of
https://github.com/torvalds/linux.git
synced 2026-09-29 12:24:02 +02:00
Merge branch 'net-ena-fix-resource-cleanup-on-probe-failure'
Guangshuo Li says: ==================== net: ena: fix resource cleanup on probe failure This series fixes two resource leaks in the ena_probe() error path after ena_device_init() has successfully initialized device resources. Patch 1 adds the missing PHC cleanup. Patch 2 adds the missing MMIO read request cleanup. ==================== Link: https://patch.msgid.link/20260921154202.471662-1-lgs201920130244@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
5b49efa1e1
|
|
@ -4122,6 +4122,8 @@ static int ena_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
err_device_destroy:
|
||||
ena_com_delete_host_info(ena_dev);
|
||||
ena_com_admin_destroy(ena_dev);
|
||||
ena_phc_destroy(adapter);
|
||||
ena_com_mmio_reg_read_request_destroy(ena_dev);
|
||||
ena_devlink_destroy:
|
||||
ena_devlink_free(devlink);
|
||||
err_metrics_destroy:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user