mmc: dw_mmc: Stop bounce buffer even in case of failure
authorMarek Vasut <marex@denx.de>
Mon, 27 Jul 2015 20:39:36 +0000 (22:39 +0200)
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>
Tue, 11 Aug 2015 17:43:34 +0000 (20:43 +0300)
commit603b2f3a74412110b5bc515a0d75929f8651dc6c
tree17ed63a3d50534c89153340c91d338fb610a8569
parente2c1c5bae619d2e87505de99f907a26237640bc9
mmc: dw_mmc: Stop bounce buffer even in case of failure

The driver didn't stop the bounce buffer in case a data transfer
failed. This would lead to memory leakage if the communication
between the CPU and the card is unreliable. Add the missing call
to stop the bounce buffer.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Tom Rini <trini@konsulko.com>
drivers/mmc/dw_mmc.c