diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-03-20 09:20:17 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-21 18:12:03 (GMT) |
commit | 7282326b722995c3fabd4dcd9244182b37500252 (patch) | |
tree | 4ffffcf62da593a467cd4e4f4443068ee4b61b0b /sound | |
parent | f734394d861fe71eafa28d6c28199d9847c5a319 (diff) | |
download | linux-7282326b722995c3fabd4dcd9244182b37500252.tar.xz |
spi: fsl-lib: Fix memory leak of pinfo
of_mpc8xxx_spi_probe() allocates memory for pinfo but the memory is not freed
anywhere. of_mpc8xxx_spi_probe() is called in .probe() and pinfo should be
freed in .remove(), so convert kzalloc to devm_kzalloc to fix the memory leak.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions