aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorBhuvanchandra DV <[email protected]>2015-01-27 16:27:20 +0530
committerMark Brown <[email protected]>2015-01-27 19:52:02 +0000
commit973fbce69ed8e79b5fe3ad19cfecb581a7ef8048 (patch)
treebe3d6b0e06947571d65441c03ba20b56f6ab4e80 /lib/memory-notifier-error-inject.c
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
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 <[email protected]> Signed-off-by: Bhuvanchandra DV <[email protected]> Signed-off-by: Mark Brown <[email protected]> Cc: [email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions