linux-stable/drivers
Yang Yingliang 865051de2d rtc: mt6397: check return value after calling platform_get_resource()
[ Upstream commit d3b43eb505 ]

It will cause null-ptr-deref if platform_get_resource() returns NULL,
we need check the return value.

Fixes: fc2979118f ("rtc: mediatek: Add MT6397 RTC driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220505125043.1594771-1-yangyingliang@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:36:07 +02:00
..
accessibility
acpi ACPI: property: Release subnode properties with data nodes 2022-06-09 10:23:20 +02:00
amba
android
ata
atm
auxdisplay
base drivers/base/memory: fix an unlikely reference counting issue in __add_memory_block() 2022-06-09 10:23:09 +02:00
bcma
block
bluetooth
bus
cdrom
char Revert "random: use static branch for crng_ready()" 2022-06-09 10:23:31 +02:00
clk clk: tegra: Add missing reset deassertion 2022-06-09 10:23:29 +02:00
clocksource clocksource/drivers/riscv: Events are stopped during CPU suspend 2022-06-14 18:36:07 +02:00
comedi
connector
counter
cpufreq cpufreq: mediatek: Unregister platform device on exit 2022-06-09 10:23:14 +02:00
cpuidle
crypto crypto: sun8i-ss - handle zero sized sg 2022-06-09 10:23:11 +02:00
cxl
dax
dca
devfreq
dio
dma dmaengine: stm32-mdma: fix chan initialization in stm32_mdma_irq_handler() 2022-06-09 10:23:15 +02:00
dma-buf
edac
eisa
extcon extcon: ptn5150: Add queue work sync before driver release 2022-06-14 18:36:07 +02:00
firewire
firmware firmware: stratix10-svc: fix a missing check on list iterator 2022-06-14 18:36:05 +02:00
fpga
fsi
gnss
gpio pinctrl/rockchip: support deferring other gpio params 2022-06-09 10:23:07 +02:00
gpu gma500: fix an incorrect NULL check on list iterator 2022-06-09 10:23:29 +02:00
greybus
hid
hsi
hv Drivers: hv: vmbus: Fix handling of messages with transaction ID of zero 2022-06-09 10:23:07 +02:00
hwmon hwmon: (pmbus) Check PEC support before reading other registers 2022-06-09 10:23:02 +02:00
hwspinlock
hwtracing coresight: cpu-debug: Replace mutex with mutex_trylock on panic notifier 2022-06-14 18:36:06 +02:00
i2c i2c: rcar: fix PM ref counts in probe error paths 2022-06-09 10:23:16 +02:00
i3c
idle
iio iio: adc: sc27xx: Fine tune the scale calibration values 2022-06-14 18:36:05 +02:00
infiniband RDMA/rxe: Generate a completion for unsupported/invalid opcode 2022-06-09 10:23:31 +02:00
input Input: stmfts - do not leave device disabled in stmfts_input_open 2022-06-09 10:23:13 +02:00
interconnect interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate 2022-06-09 10:23:31 +02:00
iommu iommu/dma: Fix iova map result check bug 2022-06-09 10:23:27 +02:00
ipack
irqchip irqchip: irq-xtensa-mx: fix initial IRQ affinity 2022-06-09 10:23:26 +02:00
isdn
leds
macintosh macintosh: via-pmu and via-cuda need RTC_LIB 2022-06-09 10:23:12 +02:00
mailbox mailbox: forward the hrtimer if not queued and under a lock 2022-06-09 10:23:12 +02:00
mcb
md md: bcache: check the return value of kzalloc() in detached_dev_do_request() 2022-06-09 10:23:32 +02:00
media media: coda: Add more H264 levels for CODA960 2022-06-09 10:23:25 +02:00
memory memory: samsung: exynos5422-dmc: Avoid some over memory allocation 2022-06-09 10:23:04 +02:00
memstick
message
mfd mfd: davinci_voicecodec: Fix possible null-ptr-deref davinci_vc_probe() 2022-06-09 10:23:12 +02:00
misc misc/pvpanic: Convert regular spinlock into trylock on panic path 2022-06-14 18:36:06 +02:00
mmc mmc: core: Allows to override the timeout value for ioctl() path 2022-06-09 10:23:26 +02:00
most
mtd mtd: cfi_cmdset_0002: Use chip_ready() for write on S29GL064N 2022-06-09 10:23:25 +02:00
mux
net net: ipa: fix page free in ipa_endpoint_replenish_one() 2022-06-09 10:23:30 +02:00
nfc NFC: hci: fix sleep in atomic context bugs in nfc_hci_hcp_message_tx 2022-06-09 10:23:01 +02:00
ntb
nubus
nvdimm nvdimm: Allow overwrite in the presence of disabled dimms 2022-06-09 10:23:08 +02:00
nvme nvme: set dma alignment to dword 2022-06-09 10:22:58 +02:00
nvmem
of
opp OPP: call of_node_put() on error path in _bandwidth_supported() 2022-06-09 10:23:13 +02:00
parisc
parport
pci PCI: qcom: Fix unbalanced PHY init on probe errors 2022-06-09 10:23:21 +02:00
pcmcia pcmcia: db1xxx_ss: restrict to MIPS_DB1XXX boards 2022-06-14 18:36:02 +02:00
perf
phy phy: qcom-qmp: fix pipe-clock imbalance on power-on failure 2022-06-14 18:36:06 +02:00
pinctrl pinctrl/rockchip: support setting input-enable param 2022-06-09 10:23:32 +02:00
platform MIPS: Loongson: Use hwmon_device_register_with_groups() to register hwmon 2022-06-09 10:23:14 +02:00
pnp
power power: supply: axp288_fuel_gauge: Drop BIOS version check from "T3 MRD" DMI quirk 2022-06-14 18:36:06 +02:00
powercap
pps
ps3
ptp
pwm pwm: raspberrypi-poe: Fix endianness in firmware struct 2022-06-14 18:36:04 +02:00
rapidio
ras
regulator regulator: scmi: Fix refcount leak in scmi_regulator_probe 2022-06-09 10:23:00 +02:00
remoteproc remoteproc: imx_rproc: Ignore create mem entry for resource table 2022-06-14 18:36:03 +02:00
reset
rpmsg rpmsg: qcom_smd: Fix returning 0 if irq_of_parse_and_map() fails 2022-06-14 18:36:05 +02:00
rtc rtc: mt6397: check return value after calling platform_get_resource() 2022-06-14 18:36:07 +02:00
s390 s390/stp: clock_delta should be signed 2022-06-09 10:23:21 +02:00
sbus
scsi scsi: ufs: qcom: Add a readl() to make sure ref_clk gets enabled 2022-06-09 10:23:22 +02:00
sh
siox
slimbus
soc soc: rockchip: Fix refcount leak in rockchip_grf_init 2022-06-14 18:36:07 +02:00
soundwire soundwire: intel: prevent pm_runtime resume prior to system suspend 2022-06-14 18:36:06 +02:00
spi
spmi
ssb
staging staging: fieldbus: Fix the error handling path in anybuss_host_common_probe() 2022-06-14 18:36:04 +02:00
target
tc
tee
thermal thermal: devfreq_cooling: use local ops instead of global ops 2022-06-09 10:23:26 +02:00
thunderbolt
tty serial: sifive: Report actual baud base rather than fixed 115200 2022-06-14 18:36:06 +02:00
uio
usb usb: typec: mux: Check dev_set_name() return value 2022-06-14 18:36:05 +02:00
vdpa vdpasim: allow to enable a vq repeatedly 2022-06-09 10:23:30 +02:00
vfio
vhost
video video: fbdev: vesafb: Fix a use-after-free due early fb_info cleanup 2022-06-09 10:23:16 +02:00
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile