[module] fix loading on 5.10, new member nr_range must be specified

This commit is contained in:
Geoffrey McRae 2021-01-03 23:41:59 +11:00
parent c08aa8ece7
commit 1313858889

View File

@ -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)