mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-28 18:10:32 +00:00
Merge remote-tracking branch 'pci-current/for-linus'
This commit is contained in:
commit
1888052db2
@ -14136,7 +14136,7 @@ M: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
|
||||
R: Rob Herring <robh@kernel.org>
|
||||
L: linux-pci@vger.kernel.org
|
||||
S: Supported
|
||||
Q: http://patchwork.ozlabs.org/project/linux-pci/list/
|
||||
Q: http://patchwork.kernel.org/project/linux-pci/list/
|
||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git/
|
||||
F: drivers/pci/controller/
|
||||
|
||||
@ -14144,7 +14144,7 @@ PCI SUBSYSTEM
|
||||
M: Bjorn Helgaas <bhelgaas@google.com>
|
||||
L: linux-pci@vger.kernel.org
|
||||
S: Supported
|
||||
Q: http://patchwork.ozlabs.org/project/linux-pci/list/
|
||||
Q: http://patchwork.kernel.org/project/linux-pci/list/
|
||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git
|
||||
F: Documentation/PCI/
|
||||
F: Documentation/devicetree/bindings/pci/
|
||||
|
@ -1112,12 +1112,15 @@ static int ioctl_port_to_pff(struct switchtec_dev *stdev,
|
||||
if (copy_from_user(&p, up, sizeof(p)))
|
||||
return -EFAULT;
|
||||
|
||||
if (p.partition == SWITCHTEC_IOCTL_EVENT_LOCAL_PART_IDX)
|
||||
if (p.partition == SWITCHTEC_IOCTL_EVENT_LOCAL_PART_IDX) {
|
||||
pcfg = stdev->mmio_part_cfg;
|
||||
else if (p.partition < stdev->partition_count)
|
||||
} else if (p.partition < stdev->partition_count) {
|
||||
p.partition = array_index_nospec(p.partition,
|
||||
stdev->partition_count);
|
||||
pcfg = &stdev->mmio_part_cfg_all[p.partition];
|
||||
else
|
||||
} else {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
switch (p.port) {
|
||||
case 0:
|
||||
|
Loading…
Reference in New Issue
Block a user