serial: imx: unmap sg in case of dmaengine_prep_slave_sg() failure
authorDirk Behme <dirk.behme@de.bosch.com>
Tue, 9 Dec 2014 09:11:26 +0000 (18:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:23:07 +0000 (14:23 -0800)
commit2464982174a1886b56b445b0503b331008a626fe
tree3d68683da8002103ba4c4d071a3c37c9fcf4fe2f
parent7942f8577f2a63b7a6b8cd70f5354a608b30fead
serial: imx: unmap sg in case of dmaengine_prep_slave_sg() failure

In case dmaengine_prep_slave_sg() fails, add the missing dma_unmap_sg().

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Anton Bondarenko <anton_bondarenko@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c