linux-stable/drivers
Michael Schmitz 210a888c04 video: fbdev: atari: Atari 2 bpp (STe) palette bugfix
commit c8be5edbd3 upstream.

The code to set the shifter STe palette registers has a long
standing operator precedence bug, manifesting as colors set
on a 2 bits per pixel frame buffer coming up with a distinctive
blue tint.

Add parentheses around the calculation of the per-color palette
data before shifting those into their respective bit field position.

This bug goes back a long way (2.4 days at the very least) so there
won't be a Fixes: tag.

Tested on ARAnyM as well on Falcon030 hardware.

Cc: stable@vger.kernel.org
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/all/CAMuHMdU3ievhXxKR_xi_v3aumnYW7UNUO6qMdhgfyWTyVSsCkQ@mail.gmail.com
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-08 13:57:26 +02:00
..
accessibility
acpi ACPI: properties: Consistently return -ENOENT if there are no more references 2022-04-08 13:57:25 +02:00
amba
android
ata
atm atm: eni: Add check for dma_map_single 2022-03-15 11:01:52 +00:00
auxdisplay auxdisplay: lcd2s: Use proper API to free the instance of charlcd object 2022-03-03 00:30:31 +01:00
base regmap: Fix for v5.17 2022-02-25 12:30:01 -08:00
bcma
block drbd: fix potential silent data corruption 2022-04-08 13:57:23 +02:00
bluetooth Bluetooth: btusb: Use quirk to skip HCI_FLT_CLEAR_ALL on fake CSR controllers 2022-03-28 10:03:21 +02:00
bus bus: mhi: Fix MHI DMA structure endianness 2022-04-08 13:57:14 +02:00
cdrom
char tpm: use try_get_ops() in tpm-space.c 2022-03-28 10:03:21 +02:00
clk clk: uniphier: Fix fixed-rate initialization 2022-04-08 13:57:16 +02:00
clocksource
comedi
connector
counter counter: Stop using dev_get_drvdata() to get the counter device 2022-03-15 19:24:13 +01:00
cpufreq
cpuidle
crypto crypto: qat - disable registration of algorithms 2022-03-28 10:03:20 +02:00
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware firmware: sysfb: fix platform-device leak in error path 2022-04-08 13:57:17 +02:00
fpga
fsi
gnss
gpio Revert "gpio: Revert regression in sysfs-gpio (gpiolib.c)" 2022-03-15 09:59:08 -07:00
gpu drm/edid: check basic audio support on CEA extension block 2022-04-08 13:57:26 +02:00
greybus greybus: svc: fix an error handling bug in gb_svc_hello() 2022-04-08 13:57:16 +02:00
hid HID: intel-ish-hid: Use dma_alloc_coherent for firmware update 2022-04-08 13:57:17 +02:00
hsi
hv
hwmon
hwspinlock
hwtracing coresight: syscfg: Fix memleak on registration failure in cscfg_create_device 2022-04-08 13:57:14 +02:00
i2c
i3c
idle
iio iio: inkern: make a best effort on offset calculation 2022-04-08 13:57:16 +02:00
infiniband RDMA/cma: Do not change route.addr.src_addr outside state checks 2022-02-25 16:46:51 -04:00
input Revert "Input: clear BTN_RIGHT/MIDDLE on buttonpads" 2022-04-08 13:57:21 +02:00
interconnect
iommu iommu/iova: Improve 32-bit free space estimate 2022-04-08 13:57:13 +02:00
ipack
irqchip
isdn isdn: hfcpci: check the return value of dma_set_mask() in setup_hw() 2022-03-07 11:27:12 +00:00
leds
macintosh
mailbox mailbox: tegra-hsp: Flush whole channel 2022-04-08 13:57:26 +02:00
mcb
md dm integrity: set journal entry unused when shrinking device 2022-04-08 13:57:23 +02:00
media
memory
memstick
message
mfd
misc mei: avoid iterator usage outside of list_for_each_entry 2022-04-08 13:57:14 +02:00
mmc mmc: core: use sysfs_emit() instead of sprintf() 2022-04-08 13:57:25 +02:00
most
mtd mtd: rawnand: protect access to rawnand devices while in suspend 2022-04-08 13:57:19 +02:00
mux
net qed: validate and restrict untrusted VFs vlan promisc mode 2022-04-08 13:57:20 +02:00
nfc NFC: port100: fix use-after-free in port100_send_complete 2022-03-09 19:59:34 -08:00
ntb
nubus
nvdimm
nvme nvmet: revert "nvmet: make discovery NQN configurable" 2022-03-15 10:39:26 +01:00
nvmem
of
opp
parisc
parport
pci PCI: fu740: Force 2.5GT/s for initial device probe 2022-04-08 13:57:24 +02:00
pcmcia
perf
phy
pinctrl pinctrl: samsung: drop pin banks references on error paths 2022-04-08 13:57:18 +02:00
platform
pnp
power
powercap
pps
ps3
ptp ptp: ocp: Add ptp_ocp_adjtime_coarse for large adjustments 2022-03-02 09:51:21 -08:00
pwm
rapidio
ras
regulator
remoteproc remoteproc: Fix count check in rproc_coredump_write() 2022-04-08 13:57:18 +02:00
reset
rpmsg
rtc rtc: pl031: fix rtc features null pointer dereference 2022-04-08 13:57:22 +02:00
s390
sbus
scsi scsi: libsas: Fix sas_ata_qc_issue() handling of NCQ NON DATA commands 2022-04-08 13:57:20 +02:00
sh
siox
slimbus
soc ARM: SoC fixes for 5.17, part 3 2022-03-10 11:43:01 -08:00
soundwire
spi spi: mxic: Fix the transmit path 2022-04-08 13:57:18 +02:00
spmi
ssb
staging staging: rtl8723bs: Improve the comment explaining the locking rules 2022-03-02 16:38:24 +01:00
target
tc
tee
thermal thermal: core: Fix TZ_GET_TRIP NULL pointer dereference 2022-03-01 16:11:38 +01:00
thunderbolt
tty
uio
usb xhci: fix uninitialized string returned by xhci_decode_ctrl_ctx() 2022-04-08 13:57:14 +02:00
vdpa vdpa: fix use-after-free on vp_vdpa_remove 2022-03-06 06:06:50 -05:00
vfio
vhost Networking fixes for 5.17-final, including fixes from netfilter, ipsec, 2022-03-17 12:55:26 -07:00
video video: fbdev: atari: Atari 2 bpp (STe) palette bugfix 2022-04-08 13:57:26 +02:00
virt
virtio virtio: drop default for virtio-mem 2022-03-06 06:06:50 -05:00
visorbus
vlynq
vme
w1
watchdog
xen xen/gnttab: fix gnttab_end_foreign_access() without page specified 2022-03-07 09:48:55 +01:00
zorro
Kconfig
Makefile