linux-stable/drivers
Stephan Gerhold bb7f07bbad regulator: ab8500: Remove AB8505 USB regulator
commit 99c4f70df3 upstream.

The USB regulator was removed for AB8500 in
commit 41a06aa738 ("regulator: ab8500: Remove USB regulator").
It was then added for AB8505 in
commit 547f384f33 ("regulator: ab8500: add support for ab8505").

However, there was never an entry added for it in
ab8505_regulator_match. This causes all regulators after it
to be initialized with the wrong device tree data, eventually
leading to an out-of-bounds array read.

Given that it is not used anywhere in the kernel, it seems
likely that similar arguments against supporting it exist for
AB8505 (it is controlled by hardware).

Therefore, simply remove it like for AB8500 instead of adding
an entry in ab8505_regulator_match.

Fixes: 547f384f33 ("regulator: ab8500: add support for ab8505")
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20191106173125.14496-1-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-12 11:24:17 +01:00
..
accessibility
acpi ACPI: PM: Avoid attaching ACPI PM domain to certain devices 2019-12-21 10:42:06 +01:00
amba
android ANDROID: binder: synchronize_rcu() when using POLLFREE. 2019-10-07 18:53:19 +02:00
ata ata: ahci_brcm: Fix AHCI resources management 2020-01-12 11:24:14 +01:00
atm atm: zatm: Fix empty body Clang warnings 2019-11-28 18:28:32 +01:00
auxdisplay
base drivers/base/platform.c: kmemleak ignore a known leak 2019-12-05 15:35:04 +01:00
bcma
block xen-blkback: prevent premature module unload 2020-01-12 11:24:11 +01:00
bluetooth Bluetooth: btusb: fix PM leak in error case of setup 2020-01-12 11:24:16 +01:00
bus
cdrom cdrom: respect device capabilities during opening action 2020-01-04 13:41:02 +01:00
char hwrng: omap3-rom - Call clk_disable_unprepare() on exit only if not idled 2020-01-04 13:39:15 +01:00
clk clk: pxa: fix one of the pxa RTC clocks 2020-01-04 13:40:55 +01:00
clocksource clocksource/drivers/asm9260: Add a check for of_clk_get 2020-01-04 13:40:45 +01:00
connector
cpufreq cpufreq: Register drivers only after CPU devices have been registered 2020-01-04 13:39:56 +01:00
cpuidle cpuidle: Do not unset the driver if it is there already 2019-12-21 10:42:04 +01:00
crypto crypto: vmx - Avoid weird build failures 2020-01-04 13:40:06 +01:00
dax
dca
devfreq PM / devfreq: Check NULL governor in available_governors_show 2020-01-12 11:24:15 +01:00
dio
dma dmaengine: coh901318: Remove unused variable 2019-12-21 10:41:06 +01:00
dma-buf dma-buf: Fix memory leak in sync_file_merge() 2019-12-21 10:42:32 +01:00
edac EDAC/ghes: Fix grain calculation 2020-01-04 13:39:51 +01:00
eisa
extcon extcon: sm5502: Reset registers during initialization 2020-01-04 13:39:22 +01:00
firewire
firmware firmware: qcom: scm: Ensure 'a0' status code is treated as signed 2019-12-21 10:42:17 +01:00
fmc
fpga
gpio gpiolib: fix up emulated open drain outputs 2020-01-12 11:24:14 +01:00
gpu drm: limit to INT_MAX in create_blob ioctl 2020-01-12 11:24:12 +01:00
hid HID: Improve Windows Precision Touchpad detection. 2020-01-04 13:40:57 +01:00
hsi
hv
hwmon hwmon: (ina3221) Fix INA3221_CONFIG_MODE macros 2019-11-25 09:53:51 +01:00
hwspinlock
hwtracing coresight: etm4x: Fix input validation for sysfs. 2019-12-21 10:41:33 +01:00
i2c i2c: imx: don't print error message on probe defer 2019-12-21 10:41:11 +01:00
ide
idle
iio iio: adc: max1027: Reset the device at probe time 2020-01-04 13:39:25 +01:00
infiniband IB/mlx4: Follow mirror sequence of device add during device removal 2020-01-12 11:24:10 +01:00
input Input: atmel_mxt_ts - disable IRQ across suspend 2020-01-04 13:40:35 +01:00
iommu iommu/tegra-smmu: Fix page tables in > 4 GiB memory 2020-01-04 13:40:37 +01:00
ipack
irqchip irqchip: ingenic: Error out if IRQ domain creation failed 2020-01-04 13:40:50 +01:00
isdn staging: gigaset: add endpoint-type sanity check 2019-12-21 10:41:50 +01:00
leds
lguest
lightnvm
macintosh macintosh/windfarm_smu_sat: Fix debug output 2019-11-28 18:28:30 +01:00
mailbox
mcb
md md: raid1: check rdev before reference in raid1_sync_request func 2020-01-12 11:24:10 +01:00
media media: flexcop-usb: ensure -EIO is returned on error condition 2020-01-12 11:24:16 +01:00
memory
memstick memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()' 2019-10-29 09:15:25 +01:00
message
mfd mfd: max8997: Enale irq-wakeup unconditionally 2019-11-28 18:28:38 +01:00
misc altera-stapl: check for a null key before strcasecmp'ing it 2019-12-21 10:41:09 +01:00
mmc mmc: sdhci: Update the tuning failed messages to pr_debug level 2020-01-04 13:41:10 +01:00
mtd mtd: spear_smi: Fix Write Burst mode 2019-12-21 10:41:56 +01:00
net gtp: avoid zero size hashtable 2020-01-04 13:41:15 +01:00
nfc NFC: nxp-nci: Fix NULL pointer dereference after I2C communication error 2019-12-21 10:40:48 +01:00
ntb ntb: intel: fix return value for ndev_vec_mask() 2019-11-28 18:28:52 +01:00
nubus
nvdimm
nvme nvme: host: core: fix precedence of ternary operator 2019-12-21 10:42:21 +01:00
nvmem nvmem: core: return error code instead of NULL from nvmem_device_get 2019-11-25 09:52:16 +01:00
of of: make PowerMac cache node search conditional on CONFIG_PPC_PMAC 2019-11-25 09:52:08 +01:00
oprofile
parisc parisc: Disable HP HSC-PCI Cards to prevent kernel crash 2019-10-05 12:30:31 +02:00
parport parport: load lowlevel driver if ports not found 2020-01-04 13:39:55 +01:00
pci PCI/MSI: Fix incorrect MSI-X masking on resume 2019-12-21 10:42:29 +01:00
pcmcia
perf
phy phy: phy-twl4030-usb: fix denied runtime access 2019-11-25 09:52:50 +01:00
pinctrl pinctrl: baytrail: Really serialize all register accesses 2020-01-04 13:41:09 +01:00
platform platform/x86: hp-wmi: Make buffer for HPWMI_FEATURE2_QUERY 128 bytes 2020-01-04 13:40:21 +01:00
pnp
power PM / AVS: SmartReflex: NULL check before some freeing functions is not needed 2019-12-05 15:34:17 +01:00
powercap
pps
ps3
ptp
pwm pwm: Clear chip_data in pwm_put() 2019-12-05 15:35:23 +01:00
rapidio
ras
regulator regulator: ab8500: Remove AB8505 USB regulator 2020-01-12 11:24:17 +01:00
remoteproc
reset reset: Fix potential use-after-free in __of_reset_control_get() 2019-11-25 09:53:42 +01:00
rpmsg
rtc rtc: max8997: Fix the returned value in case of error in 'max8997_rtc_read_alarm()' 2019-12-21 10:41:03 +01:00
s390 scsi: zfcp: trace channel log even for FCP command responses 2019-12-21 10:42:10 +01:00
sbus
scsi scsi: libsas: stop discovering if oob mode is disconnected 2020-01-12 11:24:10 +01:00
sfi
sh
sn
soc
spi spi: st-ssc4: add missed pm_runtime_disable 2020-01-04 13:40:02 +01:00
spmi
ssb
staging staging: comedi: gsc_hpdi: check dma_alloc_coherent() return value 2020-01-04 13:40:21 +01:00
target scsi: target: iscsi: Wait for all commands to finish before freeing a session 2020-01-04 13:41:01 +01:00
tc
thermal thermal: Fix deadlock in thermal thermal_zone_device_check 2019-12-21 10:41:43 +01:00
thunderbolt thunderbolt: Use 32-bit writes when writing ring producer/consumer 2019-11-06 12:18:14 +01:00
tty tty/serial: atmel: fix out of range clock divider handling 2020-01-04 13:41:09 +01:00
uio
usb usb: gadget: fix wrong endpoint desc 2020-01-12 11:24:10 +01:00
uwb
vfio vfio/pci: call irq_bypass_unregister_producer() before freeing irq 2019-12-21 10:42:31 +01:00
vhost vhost/vsock: accept only packets with the right dst_cid 2020-01-04 13:41:12 +01:00
video video/hdmi: Fix AVI bar unpack 2019-12-21 10:42:08 +01:00
virt
virtio virtio-balloon: fix managed page counts when migrating pages between zones 2019-12-21 10:41:57 +01:00
vlynq
vme
w1
watchdog watchdog: meson: Fix the wrong value of left time 2019-12-05 15:34:10 +01:00
xen xen/balloon: fix ballooned page accounting without hotplug enabled 2020-01-12 11:24:11 +01:00
zorro
Kconfig
Makefile