mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03:00
udev: make get_virtfn_info() provide physical PCI device
Fixes a bug introduced by 78463c6c4fdcb703bc0dc694c3ea77df3c5624e0. 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)
|
if (!suffix)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
*ret_physfn_pcidev = sd_device_ref(child);
|
*ret_physfn_pcidev = sd_device_ref(physfn_pcidev);
|
||||||
*ret_suffix = suffix;
|
*ret_suffix = suffix;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user