Fix several instances of error paths in which we call __nvmem_device_put() - which may end up freeing the underlying memory and other resources - and then keep on using the nvmem structure. Always put the reference to the nvmem device as the last step before returning the error code. Cc: stable@vger.kernel.org Fixes: |
||
|---|---|---|
| .. | ||
| layouts | ||
| an8855-efuse.c | ||
| apple-efuses.c | ||
| apple-spmi-nvmem.c | ||
| bcm-ocotp.c | ||
| brcm_nvram.c | ||
| core.c | ||
| imx-iim.c | ||
| imx-ocotp-ele.c | ||
| imx-ocotp-scu.c | ||
| imx-ocotp.c | ||
| internals.h | ||
| jz4780-efuse.c | ||
| Kconfig | ||
| lan9662-otpc.c | ||
| layerscape-sfp.c | ||
| layouts.c | ||
| lpc18xx_eeprom.c | ||
| lpc18xx_otp.c | ||
| Makefile | ||
| max77759-nvmem.c | ||
| meson-efuse.c | ||
| meson-mx-efuse.c | ||
| microchip-otpc.c | ||
| mtk-efuse.c | ||
| mxs-ocotp.c | ||
| nintendo-otp.c | ||
| qcom-spmi-sdam.c | ||
| qfprom.c | ||
| qnap-mcu-eeprom.c | ||
| qoriq-efuse.c | ||
| rave-sp-eeprom.c | ||
| rcar-efuse.c | ||
| rmem.c | ||
| rockchip-efuse.c | ||
| rockchip-otp.c | ||
| s32g-ocotp-nvmem.c | ||
| sc27xx-efuse.c | ||
| sec-qfprom.c | ||
| snvs_lpgpr.c | ||
| sprd-efuse.c | ||
| stm32-bsec-optee-ta.c | ||
| stm32-bsec-optee-ta.h | ||
| stm32-romem.c | ||
| sunplus-ocotp.c | ||
| sunxi_sid.c | ||
| u-boot-env.c | ||
| uniphier-efuse.c | ||
| vf610-ocotp.c | ||
| zynqmp_nvmem.c | ||