linux/drivers/nvmem
Rasmus Villemoes dfdf141429 nvmem: core: fix error path in nvmem_add_cells()
The current code fails to nvmem_cell_drop(cells[0]) - even worse, if
the loop above fails already at i==0, we'll enter an essentially
infinite loop doing nvmem_cell_drop on cells[-1], cells[-2], ... which
is unlikely to end well.

Also, we're not freeing the temporary backing array cells on the error
path.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-11 19:23:28 -08:00
..
core.c nvmem: core: fix error path in nvmem_add_cells() 2016-02-11 19:23:28 -08:00
imx-ocotp.c nvmem: imx-ocotp: Add i.MX6 OCOTP driver 2015-10-04 12:06:13 +01:00
Kconfig nvmem: mediatek: Add Mediatek EFUSE driver 2016-02-07 23:04:57 -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: Add Mediatek EFUSE driver 2016-02-07 23:04:57 -08:00
mxs-ocotp.c nvmem: add driver for ocotp in i.MX23 and i.MX28 2015-10-04 12:06:13 +01:00
qfprom.c nvmem: qfprom: Add Qualcomm QFPROM support. 2015-08-05 13:44:23 -07: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