summaryrefslogtreecommitdiffstats
path: root/include/linux/serial_core.h
diff options
context:
space:
mode:
authorAndy Shevchenko2016-09-12 23:23:42 +0200
committerGreg Kroah-Hartman2016-09-15 12:35:49 +0200
commita5a2b13074fd8d290bad32a5b0a0c5be9f3a84fa (patch)
tree46bc2c52942c37363e17dc750884e0954642ae10 /include/linux/serial_core.h
parentBUG: atmel_serial: Interrupts not disabled on close (diff)
downloadkernel-qcow2-linux-a5a2b13074fd8d290bad32a5b0a0c5be9f3a84fa.tar.gz
kernel-qcow2-linux-a5a2b13074fd8d290bad32a5b0a0c5be9f3a84fa.tar.xz
kernel-qcow2-linux-a5a2b13074fd8d290bad32a5b0a0c5be9f3a84fa.zip
serial: core: fix potential NULL pointer dereference
The commit 761ed4a94582 ("tty: serial_core: convert uart_close to use tty_port_close") refactored uart_close() to use tty_port_close(). At the same time it introduced a potential NULL pointer dereference. Rearrange the code to avoid kernel crash. Fixes: 761ed4a94582 ("tty: serial_core: convert uart_close to use tty_port_close") Cc: Rob Herring <robh@kernel.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serial_core.h')
0 files changed, 0 insertions, 0 deletions