OpenCloudOS-Kernel/drivers/nvmem
Axel Lin ace2217065 nvmem: core: Fix memory leak in nvmem_cell_write
A tmp buffer is allocated if cell->bit_offset || cell->nbits.
So the tmp buffer needs to be freed at the same condition to avoid leak.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-04 12:09:43 +01:00
..
Kconfig nvmem: sunxi: Move the SID driver to the nvmem framework 2015-08-05 13:44:24 -07:00
Makefile nvmem: sunxi: Move the SID driver to the nvmem framework 2015-08-05 13:44:24 -07:00
core.c nvmem: core: Fix memory leak in nvmem_cell_write 2015-10-04 12:09:43 +01:00
qfprom.c nvmem: qfprom: Add Qualcomm QFPROM support. 2015-08-05 13:44:23 -07:00
sunxi_sid.c nvmem: sunxi: Move the SID driver to the nvmem framework 2015-08-05 13:44:24 -07:00