android_kernel_asus_sm8350/drivers/parport
Maciej W. Rozycki 5b3d6d510b parport_pc: Avoid FIFO port location truncation
[ Upstream commit ab126f51c93a15093df604f661c9480854c005a3 ]

Match the data type of a temporary holding a reference to the FIFO port
with the type of the original reference coming from `struct parport',
avoiding data truncation with LP64 ports such as SPARC64 that refer to
PCI port I/O locations via their corresponding MMIO addresses and will
therefore have non-zero bits in the high 32-bit part of the reference.
And in any case it is cleaner to have the data types matching here.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Link: https://lore.kernel.org/linux-pci/20220419033752.GA1101844@bhelgaas/
Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/r/alpine.DEB.2.21.2209231912550.29493@angie.orcam.me.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-25 17:42:14 +01:00
..
BUGS-parport
daisy.c Revert "parport: daisy: use new parport device model" 2019-03-25 14:49:00 -07:00
ieee1284_ops.c parport: remove non-zero check on count 2021-09-22 12:26:36 +02:00
ieee1284.c parport: ieee1284: mark expected switch fall-through 2019-04-25 19:41:47 +02:00
Kconfig docs: kbuild: convert docs to ReST and rename to *.rst 2019-06-14 14:21:21 -06:00
Makefile parport: Add missing newline at end of file 2019-08-05 17:56:45 +02:00
multiface.h
parport_amiga.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
parport_atari.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
parport_ax88796.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
parport_cs.c parport_cs: Fix memory leak in parport_config 2019-03-28 01:35:11 +09:00
parport_gsc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
parport_gsc.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
parport_ip32.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
parport_mfc3.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
parport_pc.c parport_pc: Avoid FIFO port location truncation 2022-11-25 17:42:14 +01:00
parport_serial.c Char/Misc driver patches for 5.4-rc1 2019-09-18 11:14:31 -07:00
parport_sunbpp.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
probe.c Revert "parport: daisy: use new parport device model" 2019-03-25 14:49:00 -07:00
procfs.c
share.c parport: load lowlevel driver if ports not found 2019-12-31 16:45:25 +01:00
TODO-parport