serial: 8250_dma: check the result of TX buffer mapping
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 28 Apr 2014 12:59:56 +0000 (15:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:52:24 +0000 (14:52 -0700)
commitcc8705553c72df0e085c3950191aa6405f84d44e
tree10eebbfba1b3fbd3d8456435326726e5bbf9ab8b
parent80a5285d665d690dfc29caf496a6b90d5d34e716
serial: 8250_dma: check the result of TX buffer mapping

commit d4089a332883ad969700aac5dd4dd5f1c4fee825 upstream.

Using dma_mapping_error() to make sure the mapping did not
fail.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: "Petallo, MauriceX R" <mauricex.r.petallo@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dma.c