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:54:15 +0000 (14:54 -0700)
commit1828891837182b3ae80cc83e85b4506df016557f
treed5545acd4ab572bec981c3fee9d58deed4447efb
parentab3e7055e9b5a99767cbe3a96db798cc68d850cc
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