linux-stable/drivers
Johan Hovold 66b40f8756 rtc: pm8xxx: fix set-alarm race
commit c88db0eff9 upstream.

Make sure to disable the alarm before updating the four alarm time
registers to avoid spurious alarms during the update.

Note that the disable needs to be done outside of the ctrl_reg_lock
section to prevent a racing alarm interrupt from disabling the newly set
alarm when the lock is released.

Fixes: 9a9a54ad7a ("drivers/rtc: add support for Qualcomm PMIC8xxx RTC")
Cc: stable@vger.kernel.org      # 3.1
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: David Collins <quic_collinsd@quicinc.com>
Link: https://lore.kernel.org/r/20230202155448.6715-2-johan+linaro@kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-11 16:39:54 +01:00
..
accessibility
acpi ACPI: video: Fix Lenovo Ideapad Z570 DMI match 2023-03-11 16:39:51 +01:00
amba
android
ata ata: libata: Fix sata_down_spd_limit() when no link speed is reported 2023-02-15 17:22:13 +01:00
atm
auxdisplay
base driver core: Fix test_async_probe_init saves device in wrong array 2023-02-01 08:23:15 +01:00
bcma
block nbd: fix possible overflow on 'first_minor' in nbd_dev_add() 2023-02-25 11:55:04 +01:00
bluetooth Bluetooth: btusb: Add VID:PID 13d3:3529 for Realtek RTL8821CE 2023-03-11 16:39:51 +01:00
bus bus: sunxi-rsb: Fix error handling in sunxi_rsb_init() 2023-02-15 17:22:10 +01:00
cdrom
char
clk clk: Honor CLK_OPS_PARENT_ENABLE in clk_core_is_enabled() 2023-03-11 16:39:44 +01:00
clocksource
connector
counter
cpufreq cpufreq: armada-37xx: stop using 0 as NULL pointer 2023-02-01 08:23:17 +01:00
cpuidle
crypto crypto: hisilicon: Wipe entire pool on error 2023-03-11 16:39:50 +01:00
dax
dca
devfreq
dio
dma dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init 2023-02-06 07:56:15 +01:00
dma-buf
edac EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info 2023-02-01 08:23:23 +01:00
eisa
extcon
firewire firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region 2023-02-15 17:22:09 +01:00
firmware firmware: coreboot: framebuffer: Ignore reserved pixel color bits 2023-03-11 16:39:54 +01:00
fpga fpga: stratix10-soc: Fix return value check in s10_ops_write_init() 2023-02-15 17:22:19 +01:00
fsi WRITE is "data source", not destination... 2023-02-15 17:22:11 +01:00
gnss
gpio gpio: vf610: connect GPIO label to dev name 2023-03-11 16:39:35 +01:00
gpu drm: panel-orientation-quirks: Add quirk for Lenovo IdeaPad Duet 3 10IGL5 2023-03-11 16:39:54 +01:00
greybus
hid HID: logitech-hidpp: Don't restart communication if not necessary 2023-03-11 16:39:53 +01:00
hsi
hv
hwmon hwmon: (coretemp) Simplify platform device handling 2023-03-11 16:39:53 +01:00
hwspinlock
hwtracing
i2c i2c: rk3x: fix a bunch of kernel-doc warnings 2023-02-15 17:22:15 +01:00
i3c
ide
idle
iio iio:adc:twl6030: Enable measurement of VAC 2023-02-15 17:22:21 +01:00
infiniband IB/hfi1: Assign npages earlier 2023-03-03 11:44:51 +01:00
input Input: iqs269a - do not poll during ATI 2023-03-11 16:39:45 +01:00
interconnect
iommu iommu/mediatek-v1: Fix an error handling path in mtk_iommu_v1_probe() 2023-01-18 11:45:00 +01:00
ipack
irqchip irqchip/irq-bcm7120-l2: Set IRQ_LEVEL for level triggered interrupts 2023-03-11 16:39:29 +01:00
isdn
leds leds: led-core: Fix refcount leak in of_led_get() 2023-03-11 16:39:40 +01:00
lightnvm
macintosh
mailbox
mcb
md dm cache: add cond_resched() to various workqueue loops 2023-03-11 16:39:54 +01:00
media media: saa7134: Use video_unregister_device for radio_dev 2023-03-11 16:39:47 +01:00
memory memory: mvebu-devbus: Fix missing clk_disable_unprepare in mvebu_devbus_probe() 2023-02-01 08:23:08 +01:00
memstick
message
mfd mfd: pcf50633-adc: Fix potential memleak in pcf50633_adc_async_read() 2023-03-11 16:39:41 +01:00
misc mei: me: add meteor lake point M DID 2023-01-24 07:20:00 +01:00
mmc mmc: mmc_spi: fix error handling in mmc_spi_probe() 2023-02-22 12:55:55 +01:00
most
mtd mtd: rawnand: sunxi: Fix the size of the last OOB region 2023-03-11 16:39:41 +01:00
mux
net wifi: rtl8xxxu: fixing transmisison failure for rtl8192eu 2023-03-11 16:39:54 +01:00
nfc nfc: pn533: Wait for out_urb's completion in pn533_usb_send_frame() 2023-01-18 11:44:59 +01:00
ntb
nubus
nvdimm
nvme nvme-fc: fix a missing queue put in nvmet_fc_ls_create_association 2023-02-22 12:55:53 +01:00
nvmem nvmem: core: fix return value 2023-02-22 12:56:00 +01:00
of of/address: Return an error when no valid dma-ranges are found 2023-02-15 17:22:22 +01:00
opp OPP: fix error checking in opp_migrate_dentry() 2023-03-11 16:39:26 +01:00
oprofile
parisc parisc: led: Fix potential null-ptr-deref in start_task() 2023-01-14 10:16:36 +01:00
parport
pci PCI/sysfs: Fix double free in error path 2023-01-14 10:16:36 +01:00
pcmcia
perf
phy phy: rockchip-inno-usb2: Fix missing clk_disable_unprepare() in rockchip_usb2phy_power_on() 2023-02-01 08:23:12 +01:00
pinctrl pinctrl: at91: use devm_kasprintf() to avoid potential leaks 2023-03-11 16:39:53 +01:00
platform platform/x86: touchscreen_dmi: Add Chuwi Vi8 (CWI501) DMI match 2023-02-22 12:55:54 +01:00
pnp
power
powercap powercap: fix possible name leak in powercap_register_zone() 2023-03-11 16:39:23 +01:00
pps
ps3
ptp
pwm
rapidio
ras
regulator regulator: s5m8767: Bounds check id indexing into arrays 2023-03-11 16:39:53 +01:00
remoteproc remoteproc: qcom_q6v5_mss: Use a carveout to authenticate modem headers 2023-03-11 16:39:45 +01:00
reset
rpmsg rpmsg: glink: Avoid infinite loop on intent for missing channel 2023-03-11 16:39:47 +01:00
rtc rtc: pm8xxx: fix set-alarm race 2023-03-11 16:39:54 +01:00
s390 s390/dasd: Fix potential memleak in dasd_eckd_init() 2023-03-11 16:39:15 +01:00
sbus
scsi scsi: aic94xx: Add missing check for dma_map_single() 2023-03-11 16:39:37 +01:00
sfi
sh
siox
slimbus
soc PM: AVS: qcom-cpr: Fix an error handling path in cpr_probe() 2023-02-01 08:23:11 +01:00
soundwire
spi spi: synquacer: Fix timeout handling in synquacer_spi_transfer_one() 2023-03-11 16:39:38 +01:00
spmi
ssb
staging comedi: adv_pci1760: Fix PWM instruction handling 2023-01-24 07:19:59 +01:00
target scsi: target: core: Fix warning on RT kernels 2023-02-15 17:22:14 +01:00
tc
tee
thermal thermal: intel: Fix unsigned comparison with less than zero 2023-03-11 16:39:49 +01:00
thunderbolt thunderbolt: Use correct function to calculate maximum USB3 link rate 2023-01-24 07:19:59 +01:00
tty vc_screen: don't clobber return value in vcs_read 2023-03-03 11:44:51 +01:00
uio
usb USB: core: Don't hold device lock while reading the "descriptors" sysfs file 2023-03-03 11:44:52 +01:00
vdpa vdpa/mlx5: Don't clear mr struct on destroy MR 2023-03-11 16:39:45 +01:00
vfio
vhost vhost/net: Clear the pending messages when the backend is removed 2023-02-15 17:22:11 +01:00
video fbdev: smscufx: fix error handling code in ufx_usb_probe 2023-02-15 17:22:20 +01:00
virt
virtio
visorbus
vlynq
vme
w1 w1: fix WARNING after calling w1_process() 2023-02-01 08:23:15 +01:00
watchdog watchdog: diag288_wdt: fix __diag288() inline assembly 2023-02-15 17:22:17 +01:00
xen fix "direction" argument of iov_iter_kvec() 2023-02-15 17:22:12 +01:00
zorro
Kconfig
Makefile