diff options
author | Andy Shevchenko <[email protected]> | 2016-03-24 15:35:42 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2016-03-28 10:41:44 +0100 |
commit | 7d1f1bf699efc9b0f0e92c910dc667a4511943f5 (patch) | |
tree | 07cff0023ebbd3516e4a2f2e4898ecfe2602b0f7 /lib/mpi | |
parent | f55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff) |
spi: pxa2xx: handle error of pxa2xx_spi_dma_prepare()
If by some reason pxa2xx_spi_dma_prepare() fails we have not to ignore its
error. In such case we abort the transfer and return the error to upper
level.
Signed-off-by: Andy Shevchenko <[email protected]>
[Jarkko: Avoid leaking TX descriptors in case RX descriptor allocation
fails. Noted by Robert Jarzmik <[email protected]>.
Unmap also buffers in case of failure.]
Signed-off-by: Jarkko Nikula <[email protected]>
Acked-by: Robert Jarzmik <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions