android_kernel_samsung_univ.../drivers/nvmem
Stanislav Meduna 6e9544fb23 nvmem: mxs-ocotp: fix buffer overflow in read
commit d1306eb675ad7a9a760b6b8e8e189824b8db89e7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-05-11 11:21:21 +02:00
..
core.c nvmem: core: Fix memory leak in nvmem_cell_write 2015-10-04 12:09:43 +01:00
imx-ocotp.c nvmem: imx-ocotp: Add i.MX6 OCOTP driver 2015-10-04 12:06:13 +01:00
Kconfig nvmem: Adding bindings for rockchip-efuse 2015-10-04 12:08:14 +01:00
Makefile nvmem: Adding bindings for rockchip-efuse 2015-10-04 12:08:14 +01:00
mxs-ocotp.c nvmem: mxs-ocotp: fix buffer overflow in read 2016-05-11 11:21:21 +02:00
qfprom.c nvmem: qfprom: Add Qualcomm QFPROM support. 2015-08-05 13:44:23 -07:00
rockchip-efuse.c nvmem: rockchip_efuse_regmap_config can be static 2015-10-04 12:08:14 +01:00
sunxi_sid.c nvmem: sunxi: Check for memory allocation failure 2015-10-04 12:09:43 +01:00
vf610-ocotp.c nvmem: Add Vybrid OCOTP support 2015-10-04 12:06:13 +01:00