diff options
author | 2015-01-27 16:27:20 +0530 | |
---|---|---|
committer | 2015-01-27 19:52:02 +0000 | |
commit | 973fbce69ed8e79b5fe3ad19cfecb581a7ef8048 (patch) | |
tree | be3d6b0e06947571d65441c03ba20b56f6ab4e80 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Linux 3.19-rc1 (diff) | |
download | wireguard-linux-973fbce69ed8e79b5fe3ad19cfecb581a7ef8048.tar.xz wireguard-linux-973fbce69ed8e79b5fe3ad19cfecb581a7ef8048.zip |
spi: spi-fsl-dspi: Remove usage of devm_kzalloc
devm_* API was supposed to be used only in probe function call.
Memory is allocated at 'probe' and free automatically at 'remove'.
Usage of devm_* functions outside probe sometimes leads to memory leak.
Avoid using devm_kzalloc in dspi_setup_transfer and use kzalloc instead.
Also add the dspi_cleanup function to free the controller data upon
cleanup.
Acked-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions