]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
gigaset: don't try to printk userland buffer contents
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 12 Sep 2018 22:45:29 +0000 (18:45 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Oct 2018 04:50:49 +0000 (00:50 -0400)
especially when you've just copied it in...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/isdn/gigaset/interface.c

index 600c79b030cdb68ddfb2fefd4cd53b6d10433511..f9698c0c3885fa9d02f44df75d06151cff706e6e 100644 (file)
@@ -206,7 +206,7 @@ static int if_ioctl(struct tty_struct *tty,
                                ? -EFAULT : 0;
                        if (retval >= 0) {
                                gigaset_dbg_buffer(DEBUG_IF, "GIGASET_BRKCHARS",
-                                                  6, (const unsigned char *) arg);
+                                                  6, buf);
                                retval = cs->ops->brkchars(cs, buf);
                        }
                        break;