linux/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 nvmem: NXP LPC18xx EEPROM memory NVMEM driver 2016-02-07 23:04:57 -08:00
Makefile nvmem: mediatek: Add Mediatek EFUSE driver 2016-02-07 23:04:57 -08:00
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 nvmem: qfprom: Specify LE device endianness 2016-02-07 23:09:13 -08:00
rockchip-efuse.c nvmem: rockchip: trivial: Make the driver more readability 2016-02-07 23:07:21 -08:00
sunxi_sid.c nvmem: sunxi: trivial: fix code style 2016-02-07 23:07:21 -08:00
vf610-ocotp.c nvmem: Add Vybrid OCOTP support 2015-10-04 12:06:13 +01:00