diff options
| author | Axel Lin <[email protected]> | 2015-09-30 12:36:10 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-10-04 11:09:43 +0000 |
| commit | ace22170655f61d82fff95e57d673bf847a32a03 (patch) | |
| tree | 5a4543e05214b84bedc1d52ac14db14c67a5d559 /drivers/fpga/fpga-mgr.c | |
| parent | nvmem: core: Handle shift bits in-place if cell->nbits is non-zero (diff) | |
| download | kernel-ace22170655f61d82fff95e57d673bf847a32a03.tar.gz kernel-ace22170655f61d82fff95e57d673bf847a32a03.zip | |
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 <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
