kernel-ark/drivers/nvmem
Stanislav Meduna d1306eb675 nvmem: mxs-ocotp: fix buffer overflow in read
This patch fixes the issue where the mxs_ocotp_read is reading
the ocotp in reg_size steps but decrements the remaining size
by 1. The number of iterations is thus four times higher,
overwriting the area behind the output buffer.

Fixes: c01e9a11ab ("nvmem: add driver for ocotp in i.MX23 and i.MX28")
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Stanislav Meduna <stano@meduna.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-05-02 08:18:01 -07:00
..
core.c nvmem: Add backwards compatibility support for older EEPROM drivers. 2016-03-01 16:55:48 -08:00
imx-ocotp.c nvmem: imx-ocotp: Fix return value of imx_ocotp_read 2016-03-05 12:20:29 -08:00
Kconfig nvmem: Fix dependencies for !HAS_IOMEM archs 2016-03-05 12:20:29 -08:00
lpc18xx_eeprom.c
Makefile
mtk-efuse.c nvmem: mediatek: Fix later provider initialization 2016-03-05 12:20:29 -08:00
mxs-ocotp.c nvmem: mxs-ocotp: fix buffer overflow in read 2016-05-02 08:18:01 -07:00
qfprom.c
rockchip-efuse.c
sunxi_sid.c
vf610-ocotp.c