android_kernel_motorola_sm6375/drivers/nvmem
Repository files (latest commit first)
Filename Latest commit message Latest commit date
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
Kconfig
lpc18xx_eeprom.c
Makefile
mtk-efuse.c
mxs-ocotp.c
qfprom.c
rockchip-efuse.c nvmem: rockchip: trivial: Make the driver more readability 2016-02-07 23:07:21 -08:00
sunxi_sid.c
vf610-ocotp.c