diff options
| author | Krzysztof Wilczyński <kwilczynski@kernel.org> | 2026-07-06 17:54:23 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2026-07-10 15:31:06 -0500 |
| commit | 651fb94aaf245430590216d497fb8b02dd73d5f9 (patch) | |
| tree | a888fe55741e1b3171856dec08d2ecebde5673c4 /scripts/Makefile.thinlto | |
| parent | 5b95212de6dcd7e0275cea7f894fe7226c7d9f29 (diff) | |
| download | linux-stable-651fb94aaf245430590216d497fb8b02dd73d5f9.tar.gz linux-stable-651fb94aaf245430590216d497fb8b02dd73d5f9.zip | |
alpha/PCI: Fix I/O port accessor argument order in pci_legacy_write()
pci_legacy_write() in arch/alpha/kernel/pci-sysfs.c passes its arguments to
outb(), outw() and outl() in the wrong order:
outb(port, val);
The Alpha I/O accessors in arch/alpha/include/asm/io.h take the value first
and the port second:
extern void outb(u8 b, unsigned long port);
So the port number is written as data to the I/O address taken from the
user-supplied value, and the intended write to the requested port never
happens.
The arguments have been reversed since the file was added, and the function
returns the access size regardless, so the caller sees success while the
requested port is left untouched.
Fixes: 10a0ef39fbd1 ("PCI/alpha: pci sysfs resources")
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Magnus Lindholm <linmag7@gmail.com>
Reviewed-by: Magnus Lindholm <linmag7@gmail.com>
Acked-by: Magnus Lindholm <linmag7@gmail.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260706175423.98305-1-kwilczynski@kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
