]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/tty/tty_io.c
tty: fix compat TIOCGSERIAL checking wrong function ptr
[linux.git] / drivers / tty / tty_io.c
index db4a13bc855ed65f957d1e5bfc790178068f1941..5a6f36b391d95d8662d82984f8842f3948545bca 100644 (file)
@@ -2734,7 +2734,7 @@ static int compat_tty_tiocgserial(struct tty_struct *tty,
        memset(&v, 0, sizeof(v));
        memset(&v32, 0, sizeof(v32));
 
-       if (!tty->ops->set_serial)
+       if (!tty->ops->get_serial)
                return -ENOTTY;
        err = tty->ops->get_serial(tty, &v);
        if (!err) {