android_kernel_oneplus_msm8998/drivers/nvmem
Srinivas Kandagatla cdf4e8eae6 nvmem: core: return error code instead of NULL from nvmem_device_get
[ Upstream commit ca6ac25cecf0e740d7cc8e03e0ebbf8acbeca3df ]

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-25 15:53:55 +01:00
..
core.c nvmem: core: return error code instead of NULL from nvmem_device_get 2019-11-25 15:53:55 +01:00
imx-ocotp.c nvmem: imx-ocotp: Fix wrong register size 2017-08-06 19:19:46 -07:00
Kconfig
Makefile
mxs-ocotp.c nvmem: mxs-ocotp: fix buffer overflow in read 2016-05-11 11:21:21 +02:00
qfprom.c
rockchip-efuse.c
sunxi_sid.c nvmem: sunxi: Check for memory allocation failure 2015-10-04 12:09:43 +01:00
vf610-ocotp.c