aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJason S. McMullan <[email protected]>2015-09-30 06:35:05 +0000
committerBjorn Helgaas <[email protected]>2015-12-11 01:38:07 +0000
commitc20aecf6963d1273d8f6d61c042b4845441ca592 (patch)
treea8dd6cf72ee59cf4f1172ffe5e37f3cd73cbca72 /net/unix/af_unix.c
parentx86/PCI: Clarify AMD Fam10h config access restrictions comment (diff)
downloadkernel-c20aecf6963d1273d8f6d61c042b4845441ca592.tar.gz
kernel-c20aecf6963d1273d8f6d61c042b4845441ca592.zip
PCI: Support PCIe devices with short cfg_size
If a device quirk modifies the pci_dev->cfg_size to be less than PCI_CFG_SPACE_EXP_SIZE (4096), but greater than PCI_CFG_SPACE_SIZE (256), the PCI sysfs interface truncates the readable size to PCI_CFG_SPACE_SIZE. Allow sysfs access to config space up to cfg_size, even if the device doesn't support the entire 4096-byte PCIe config space. Note that pci_read_config() and pci_write_config() limit access to dev->cfg_size even though pcie_config_attr contains 4096 (the maximum size). Signed-off-by: Jason S. McMullan <[email protected]> [simon: edited changelog] Signed-off-by: Simon Horman <[email protected]> [bhelgaas: more changelog edits] Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions