[PATCH 2/2] mmc: mmci: simplify err check in mmci_post_request

Linus Walleij linus.walleij at linaro.org
Mon Sep 12 10:06:08 EDT 2011


On Mon, Aug 29, 2011 at 3:35 PM, Per Forlin <per.forlin at linaro.org> wrote:

> The error condition indicates that mmci_post_request() should cleanup
> after the mmci_pre_request(). In this case the resources allocated by
> device_prep_slave_sg() are freed by calling dmaengine_terminate_all().
> dma_unmap_sg() should always be performed if the host_cookie is set.
>
> Signed-off-by: Per Forlin <per.forlin at linaro.org>

Acked-by: Linus Walleij <linus.walleij at linaro.org>

Thanks,
Linus Walleij



More information about the linux-arm-kernel mailing list