linux-stable/drivers/nvmem
Srinivas Kandagatla 3801e9dd95 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 17:59:56 +01:00
..
bcm-ocotp.c nvmem: correct Broadcom OTP controller driver writes 2017-06-09 12:08:27 +02:00
core.c nvmem: core: return error code instead of NULL from nvmem_device_get 2019-11-20 17:59:56 +01:00
imx-iim.c nvmem: Add driver for the i.MX IIM 2017-04-08 17:51:48 +02:00
imx-ocotp.c nvmem: imx-ocotp: add write support 2017-04-08 17:51:48 +02:00
Kconfig nvmem: Add driver for the i.MX IIM 2017-04-08 17:51:48 +02:00
lpc18xx_eeprom.c nvmem: lpc18xx-eeprom: explicitly request exclusive reset control 2017-08-28 17:33:22 +02:00
lpc18xx_otp.c nvmem: add NXP LPC18xx OTP driver 2016-11-10 15:34:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
meson-efuse.c firmware: meson-sm: Check for buffer output size 2017-03-23 12:22:32 -07:00
mtk-efuse.c nvmem: mtk-efuse: remove nvmem regmap dependency 2016-06-25 07:42:55 -07:00
mxs-ocotp.c nvmem: mxs-ocotp: remove nvmem regmap dependency 2016-06-25 07:42:55 -07:00
qfprom.c nvmem: qfprom: Allow single byte accesses for read/write 2017-01-04 18:22:47 +01:00
rockchip-efuse.c nvmem: rockchip-efuse: amend compatible rk322x-efuse to rk3228-efuse 2017-07-17 16:15:57 +02:00
sunxi_sid.c nvmem: sunxi-sid: add support for H3's SID controller 2017-04-08 17:51:48 +02:00
vf610-ocotp.c