[PATCH] USB: usbserial: Adds missing checks and bug fix.
authorLuiz Fernando Capitulino <lcapitulino@mandriva.com.br>
Mon, 28 Nov 2005 21:16:05 +0000 (19:16 -0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 4 Jan 2006 21:48:35 +0000 (13:48 -0800)
commit487f9c6710e7dff338e59820f6cfaeaaa87cb532
treecf8b5706aa97d8a9143a40658440772863320bd7
parent717f736d937d0e98e964375dac770bfa20f73b72
[PATCH] USB: usbserial: Adds missing checks and bug fix.

Checks if 'port' is NULL before using it in all tty operations, this
can avoid NULL pointer dereferences.

Signed-off-by: Luiz Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/usb-serial.c