WSL2-Linux-Kernel/drivers/nvmem
Russell King (Oracle) 63b8e4cc31 nvmem: core: fix return value
[ Upstream commit 0c4862b1c1 ]

Dan Carpenter points out that the return code was not set in commit
60c8b4aebd8e ("nvmem: core: fix cleanup after dev_set_name()"), but
this is not the only issue - we also need to zero wp_gpio to prevent
gpiod_put() being called on an error value.

Fixes: 560181d3ac ("nvmem: core: fix cleanup after dev_set_name()")
Cc: stable@vger.kernel.org
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230127104015.23839-10-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-22 12:57:03 +01:00
..
Kconfig
Makefile
bcm-ocotp.c
brcm_nvram.c
core.c nvmem: core: fix return value 2023-02-22 12:57:03 +01:00
imx-iim.c
imx-ocotp-scu.c
imx-ocotp.c
jz4780-efuse.c
lpc18xx_eeprom.c
lpc18xx_otp.c
meson-efuse.c
meson-mx-efuse.c
mtk-efuse.c
mxs-ocotp.c
nintendo-otp.c
qcom-spmi-sdam.c nvmem: qcom-spmi-sdam: fix module autoloading 2023-02-09 11:26:43 +01:00
qfprom.c
rave-sp-eeprom.c
rmem.c nvmem: rmem: Fix return value check in rmem_read() 2022-12-08 11:28:39 +01:00
rockchip-efuse.c
rockchip-otp.c
sc27xx-efuse.c
snvs_lpgpr.c
sprd-efuse.c
stm32-romem.c
sunxi_sid.c
uniphier-efuse.c
vf610-ocotp.c
zynqmp_nvmem.c