Suspicious pointer usage in kobil_sct driver.
Subsystems (2)
Greg, is this what's intended here?
Dave
drivers/usb/serial/kobil_sct.c +1 -1
@@ -651,7 +651,7 @@ static int kobil_ioctl(struct usb_seriareturn 0 ;case TCSETS :// 0x5402 -if (! &port->tty->termios) { +if (!(port->tty->termios)) {dbg ("%s - port %d Error: port->tty->termios is NULL" , __FUNCTION__, port->number);return -ENOTTY ; }
Quoted 1 line · On Fri, Jan 23, 2004 at 06:35:25AM +0000, [email protected] wrote:
Greg, is this what's intended here?
Yes, your patch is correct. I'll go apply it, thanks.
greg k-h
Quoted 12 lines
diff -urpN --exclude-from=/home/davej/.exclude
bk-linus/drivers/usb/serial/kobil_sct.clinux-2.5/drivers/usb/serial/kobil_sct.cdrivers/usb/serial/kobil_sct.c +1
-1@@ -651,7 +651,7 @@ static int kobil_ioctl(struct usb_seriareturn 0 ;case TCSETS :// 0x5402 -if (! &port->tty->termios) { +if (!(port->tty->termios)) {dbg ("%s - port %d Error: port->tty->termios is NULL" , __FUNCTION__, port->number);return -ENOTTY ; }
Greg KH
AppliedQuoted 1 line · On Fri, Jan 23, 2004 at 06:35:25AM +0000, [email protected] wrote:
Greg, is this what's intended here?
Applied, thanks.
greg k-h