]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mmci: simplify err check in mmci_post_request
authorPer Forlin <per.forlin@linaro.org>
Mon, 29 Aug 2011 13:35:59 +0000 (15:35 +0200)
committerChris Ball <cjb@laptop.org>
Wed, 26 Oct 2011 20:32:04 +0000 (16:32 -0400)
commit1cb6bff2ecddea8e23f93b2bab2a5c32d00ecb23
tree6cf706421307d3f512efbd51e15d2c88cd8df382
parent6d301efcb290511e48d182081fb637f131244f1b
mmc: mmci: simplify err check in mmci_post_request

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@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mmci.c