hso modem detect fix patch against Alan Cox'es tty tree
Subsystems (4)
Here you go good sir,
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 <[email protected]>
---
drivers/net/usb/hso.c +1 -1
@@ -2659,7 +2659,7 @@ serial->parent = hso_dev; hso_dev->port_data.dev_serial = serial; -if (port &HSO_PORT_MODEM ) { +if ((port &HSO_PORT_MASK ) ==HSO_PORT_MODEM ) { num_urbs =2 ; serial->tiocmget =kzalloc (sizeof (struct hso_tiocmget ),GFP_KERNEL );
Signature · 15 lines
best regards, D.J. Barrow Linux Kernel Developer Option NV, Gaston Geenslaan 14, 3001 Leuven, Belgium T: +32 16 311 621 F: +32 16 207 164 M: +32 4xx xxx xxx [email protected] www.option.com Disclaimer: http://www.option.com/company/disclaimer.shtml RPR Leuven 0429.375.448
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 <[email protected]>
---
drivers/net/usb/hso.c +1 -1
@@ -2659,7 +2659,7 @@ serial->parent = hso_dev; hso_dev->port_data.dev_serial = serial; -if (port &HSO_PORT_MODEM ) { +if ((port &HSO_PORT_MASK ) ==HSO_PORT_MODEM ) { num_urbs =2 ; serial->tiocmget =kzalloc (sizeof (struct hso_tiocmget ),GFP_KERNEL );
David Miller
maintainerFrom: Denis Joseph Barrow <[email protected]>
Date: Mon, 08 Dec 2008 15:38:31 +0100
Quoted 5 lines
Fixed incorrect check for the modem port, this prevents crashes caused by issueing a
tiocmget_submit_urbon endpoints which don't exist for non modem devices.Signed-off-by Denis Joseph Barrow <[email protected]>
Alan, you got this one or want me to grab it?
I'm fine either way.