linux-stable/drivers/nvmem
Srinivas Kandagatla 88e9f8198d nvmem: core: return error code instead of NULL from nvmem_device_get
[ Upstream commit ca6ac25cec ]

nvmem_device_get() should return ERR_PTR() on error or valid pointer
on success, but one of the code path seems to return NULL, so fix it.

Reported-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-20 18:46:31 +01:00
..
bcm-ocotp.c nvmem: bcm-ocotp: Do not use "&pdev->dev" explicitly 2018-03-14 19:28:14 +01:00
core.c nvmem: core: return error code instead of NULL from nvmem_device_get 2019-11-20 18:46:31 +01:00
imx-iim.c nvmem: imx-iim: Do not use "&pdev->dev" explicitly 2018-03-14 19:28:14 +01:00
imx-ocotp.c nvmem: imx-ocotp: add support for imx6sll 2018-07-15 14:03:06 +02:00
Kconfig nvmem: Add Spreadtrum SC27XX efuse support 2018-07-15 14:03:05 +02:00
lpc18xx_eeprom.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
lpc18xx_otp.c
Makefile nvmem: Add Spreadtrum SC27XX efuse support 2018-07-15 14:03:05 +02:00
meson-efuse.c nvmem: meson-efuse: add write support 2018-05-14 16:20:48 +02:00
meson-mx-efuse.c
mtk-efuse.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
mxs-ocotp.c
qfprom.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
rave-sp-eeprom.c nvmem: rave-sp-eeprom: Remove VLA usage 2018-07-07 17:30:46 +02:00
rockchip-efuse.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
sc27xx-efuse.c nvmem: Add Spreadtrum SC27XX efuse support 2018-07-15 14:03:05 +02:00
snvs_lpgpr.c nvmem: add i.MX7 support to snvs-lpgpr 2018-03-14 19:28:14 +01:00
sunxi_sid.c nvmem: sunxi_sid: Support SID on A83T and H5 2019-06-15 11:54:07 +02:00
uniphier-efuse.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
vf610-ocotp.c