mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
udev: make get_virtfn_info() provide physical PCI device
Fixes a bug introduced by 78463c6c4f
.
Fixes #25545.
This commit is contained in:
parent
5b5aaf9a91
commit
cf74e2e16f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user