]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'pci/sysfs'
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 5 Nov 2021 16:28:46 +0000 (11:28 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 5 Nov 2021 16:28:46 +0000 (11:28 -0500)
commit9fc8ca5d9054114ba12f2770e35ab0b8273b2869
tree392fff6b7aec124c5f41086600d76d136d604157
parent7d06609e3183520336e042f295c01ec893484dae
parent6d5a3a86c76b3820b2571826f022e08506547d46
Merge branch 'pci/sysfs'

- Check for CAP_SYS_ADMIN before validating sysfs user input, not after
  (Krzysztof Wilczyński)

- Always return -EINVAL from sysfs "store" functions for invalid user input
  instead of -EINVAL sometimes and -ERANGE others (Krzysztof Wilczyński)

- Use kstrtobool() directly instead of the strtobool() wrapper (Krzysztof
  Wilczyński)

* pci/sysfs:
  PCI: Use kstrtobool() directly, sans strtobool() wrapper
  PCI/sysfs: Return -EINVAL consistently from "store" functions
  PCI/sysfs: Check CAP_SYS_ADMIN before parsing user input

# Conflicts:
# drivers/pci/iov.c
drivers/pci/iov.c
drivers/pci/p2pdma.c
drivers/pci/pci-sysfs.c