]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
UBUNTU: SAUCE: pci-hyperv: Use only 16 bit integer for PCI domain
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 24 Apr 2017 23:38:08 +0000 (19:38 -0400)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 29 Jan 2018 13:44:55 +0000 (07:44 -0600)
BugLink: http://bugs.launchpad.net/bugs/1684971
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/pci/host/pci-hyperv.c

index 6b8d060d07de7d8ba2fc66dd3a0b0087470f4b82..8d3f36953f69399cd1024d9bf2821ae063fc5510 100644 (file)
@@ -1536,9 +1536,11 @@ static struct hv_pci_dev *new_pcichild_device(struct hv_pcibus_device *hbus,
         * can have shorter names than based on the bus instance UUID.
         * Only the first device serial number is used for domain, so the
         * domain number will not change after the first device is added.
+        * The lower 16 bits of the serial number is used, otherwise some
+        * drivers may not be able to handle it.
         */
        if (list_empty(&hbus->children))
-               hbus->sysdata.domain = desc->ser;
+               hbus->sysdata.domain = desc->ser & 0xFFFF;
        list_add_tail(&hpdev->list_entry, &hbus->children);
        spin_unlock_irqrestore(&hbus->device_list_lock, flags);
        return hpdev;