]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commit
cadence_uart: check for serial backend before using it.
authorKONRAD Frederic <fred.konrad@greensocs.com>
Tue, 15 Jul 2014 15:18:44 +0000 (17:18 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 6 Aug 2014 19:55:49 +0000 (14:55 -0500)
commitb1251db2583adfcb5e3b12ee1d9b32f415746056
treea159f11cc6c57c20f2b17c2f81d0a74d962fa661
parent29cffd368a6623a8e29b393f336541134d823122
cadence_uart: check for serial backend before using it.

This checks that s->chr is not NULL before using it.

Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit af52fe862fba686713044efdf9158195f84535ab)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/char/cadence_uart.c