Miscellaneous fixes for pci subsystem
Ilpo Järvinen warned me of potential issues in my previous patch,
so I have made the necessary adjustments.
Changes in v2:
- Correct grammer and indentation.
- Remove unrelated stack traces from the commit message.
- Modify the handling of pos by adding a non-negative check to ensure
that the input value is valid.
- Use the existing IS_ALIGNED macro and ensure that after modification,
other cases still retuen -EINVAL as before.
- Link to v1: https://lore.kernel.org/linux-pci/20251216083912.758219-1-duziming2@huawei.com/
Thanx, Du
Yongqiang Liu (2):
PCI/sysfs: Prohibit unaligned access to I/O port on non-x86
PCI: Prevent overflow in proc_bus_pci_write()
Ziming Du (1):
PCI/sysfs: Fix null pointer dereference during hotplug
drivers/pci/pci-sysfs.c | 10 ++++++++++
drivers/pci/proc.c | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
--
2.43.0