]> asedeno.scripts.mit.edu Git - linux.git/commit
tty: serial: jsm: Add one check against NULL pointer dereference
authorGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Fri, 22 Dec 2017 16:31:39 +0000 (14:31 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Jan 2018 15:37:03 +0000 (16:37 +0100)
commite50af488dddea7754e581d69bf978356e468845c
tree193978b60735a8234130576da1de6688b7e2eb93
parent8ca31ba8bb3441dd9928d2f92ffeee11dd2b6e63
tty: serial: jsm: Add one check against NULL pointer dereference

All calls to neo_copy_data_from_uart_to_queue() are safeguarded
against NULL dereference of its parameter, except the one that
this patch changes.

That said, let's play safe and check for NULL in this case too.

Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/jsm/jsm_neo.c