hso modem detect fix patch against Alan Cox'es tty tree
authorDenis Joseph Barrow <D.Barow@option.com>
Fri, 2 Jan 2009 13:50:29 +0000 (13:50 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Jan 2009 18:19:43 +0000 (10:19 -0800)
commit58eb17f155704062d76729d1fb7e23d3559ca86a
treef57641ce2ee171ce4647522d5c6759356280c4c1
parentad36b88e2d22e9ef42797581d3ecea9feadd9488
hso modem detect fix patch against Alan Cox'es tty tree

Fixed incorrect check for the modem port, this prevents
crashes caused by issueing a tiocmget_submit_urb
on endpoints which don't exist for non modem devices.

Signed-off-by: Denis Joseph Barrow <D.Barow@option.com>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/usb/hso.c