]> git.baikalelectronics.ru Git - kernel.git/commit
USB: io_ti, stop dereferencing potential NULL
authorJiri Slaby <jslaby@suse.cz>
Thu, 4 Apr 2013 20:41:01 +0000 (22:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 22:38:30 +0000 (15:38 -0700)
commit15bee48300466c0947ff9bf34c168cd9fd7ab9a3
treef698d8ddb581e35e768187ca9c1501f3f03cf471
parentdefebaf1d33ee3e200c670311f1075aa2a0f3692
USB: io_ti, stop dereferencing potential NULL

tty_port_tty_get might return a tty which is NULL. But it is
dereferenced unconditionally in edge_send. Stop dereferencing that by
sending usb_serial_port pointer around.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/io_ti.c