]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB: fix suspicious pointer usage in kobil_sct driver.
authorDave Jones <davej@redhat.com>
Mon, 26 Jan 2004 08:46:10 +0000 (00:46 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 26 Jan 2004 08:46:10 +0000 (00:46 -0800)
drivers/usb/serial/kobil_sct.c

index cb588ec79c5a055e3db3b0e94ed2ddc567c3954f..2bf6eb109524bffcb30d049354cf98203548a88f 100644 (file)
@@ -651,7 +651,7 @@ static int  kobil_ioctl(struct usb_serial_port *port, struct file *file,
                return 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;
                }