diff options
author | Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> | 2015-01-27 16:27:20 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-27 19:52:02 +0000 |
commit | 973fbce69ed8e79b5fe3ad19cfecb581a7ef8048 (patch) | |
tree | be3d6b0e06947571d65441c03ba20b56f6ab4e80 /drivers/spi/Kconfig | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) | |
download | op-kernel-dev-973fbce69ed8e79b5fe3ad19cfecb581a7ef8048.zip op-kernel-dev-973fbce69ed8e79b5fe3ad19cfecb581a7ef8048.tar.gz |
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 'drivers/spi/Kconfig')
0 files changed, 0 insertions, 0 deletions