mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[module] fix loading on 5.10, new member nr_range must be specified
This commit is contained in:
parent
c08aa8ece7
commit
1313858889
@ -284,6 +284,7 @@ static int kvmfr_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
||||
#else
|
||||
kdev->pgmap.range.start = pci_resource_start(dev, 2);
|
||||
kdev->pgmap.range.end = pci_resource_end (dev, 2);
|
||||
kdev->pgmap.nr_range = 1;
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 9, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user