diff options
author | Boris Brezillon <bbrezillon@kernel.org> | 2019-01-19 15:57:57 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-21 17:57:14 +0000 |
commit | bfecfd6e23bf677c85828eb20fa4b13a18bffe23 (patch) | |
tree | 818c65255f644de45463589a02ef38d3d056cac1 /samples/mic/mpssd | |
parent | 5c0c4ec9ba61a98ecb79036afc013bba8d5b85e3 (diff) |
spi: spi-mem: Fix a memory leak in spi_mem_dirmap_destroy()
The dirmap descriptor object allocated in spi_mem_dirmap_create is
never freed. Add a kfree(desc) in spi_mem_dirmap_destroy().
Fixes: aa167f3fed0c ("spi: spi-mem: Add a new API to support direct mapping")
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'samples/mic/mpssd')
0 files changed, 0 insertions, 0 deletions