android_kernel_motorola_sm6375/drivers/nvmem
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nicholas Johnson 4d60b72514 nvmem: check for NULL reg_read and reg_write before dereferencing
commit 3c91ef69a3e94f78546b246225ed573fbf1735b4 upstream.

Return -EPERM if reg_read is NULL in bin_attr_nvmem_read() or if
reg_write is NULL in bin_attr_nvmem_write().

This prevents NULL dereferences such as the one described in
03cd45d2e219 ("thunderbolt: Prevent crash if non-active NVMem file is
read")

Signed-off-by: Nicholas Johnson <nicholas.johnson-opensource@outlook.com.au>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200310132257.23358-10-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-08 09:08:42 +02:00
..
bcm-ocotp.c
core.c nvmem: core: fix memory abort in cleanup path 2020-02-11 04:35:21 -08:00
imx-iim.c
imx-ocotp-scu.c
imx-ocotp.c nvmem: imx-ocotp: reset error status on probe 2019-12-31 16:44:42 +01:00
Kconfig
lpc18xx_eeprom.c
lpc18xx_otp.c
Makefile
meson-efuse.c
meson-mx-efuse.c
mtk-efuse.c
mxs-ocotp.c
nvmem-sysfs.c nvmem: check for NULL reg_read and reg_write before dereferencing 2020-04-08 09:08:42 +02:00
nvmem.h
qfprom.c
rave-sp-eeprom.c
rockchip-efuse.c
sc27xx-efuse.c
snvs_lpgpr.c
stm32-romem.c
sunxi_sid.c
uniphier-efuse.c
vf610-ocotp.c
zynqmp_nvmem.c