udev: make get_virtfn_info() provide physical PCI device

Fixes a bug introduced by 78463c6c4f.

Fixes #25545.
This commit is contained in:
Yu Watanabe
2023-02-01 23:39:43 +09:00
committed by Luca Boccassi
parent 5b5aaf9a91
commit cf74e2e16f

View File

@@ -144,7 +144,7 @@ static int get_virtfn_info(sd_device *pcidev, sd_device **ret_physfn_pcidev, cha
if (!suffix)
return -ENOMEM;
*ret_physfn_pcidev = sd_device_ref(child);
*ret_physfn_pcidev = sd_device_ref(physfn_pcidev);
*ret_suffix = suffix;
return 0;
}