mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-05 04:05:47 +00:00
[module] fix loading on 5.10, new member nr_range must be specified
This commit is contained in:
parent
c08aa8ece7
commit
1313858889
1 changed files with 1 additions and 0 deletions
|
@ -284,6 +284,7 @@ static int kvmfr_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
||||||
#else
|
#else
|
||||||
kdev->pgmap.range.start = pci_resource_start(dev, 2);
|
kdev->pgmap.range.start = pci_resource_start(dev, 2);
|
||||||
kdev->pgmap.range.end = pci_resource_end (dev, 2);
|
kdev->pgmap.range.end = pci_resource_end (dev, 2);
|
||||||
|
kdev->pgmap.nr_range = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 9, 0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 9, 0)
|
||||||
|
|
Loading…
Reference in a new issue