]> git.hungrycats.org Git - linux/commit
[SERIAL] Fix missing NULL check
authorRussell King <rmk@flint.arm.linux.org.uk>
Sat, 24 Jan 2004 21:23:50 +0000 (21:23 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sat, 24 Jan 2004 21:23:50 +0000 (21:23 +0000)
commit59debc62e781e7eb7286aa970a927d52b9609cb8
tree753a7c8c018eaeb6b73bf6e5d06717cbe06dd62f
parent811a9c611b9f0ea3fad80c329318b4eae23120ba
[SERIAL] Fix missing NULL check

tty->driver_data or state->port may end up being NULL in uart_close.
Make sure that we correctly clean up in this case, rather than
oopsing.
drivers/serial/serial_core.c