From 6d7fee2615877bb0f009d9f60cae777b59f40728 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Sun, 30 May 2004 06:09:21 -0700 Subject: [PATCH] sparse: n_tty annotation n_tty annotated, ldisc_struct ->read() and ->write() got __user on their buf argument. --- include/linux/tty_ldisc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/linux') diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h index c851b7dc997e..cb7ca58e44e8 100644 --- a/include/linux/tty_ldisc.h +++ b/include/linux/tty_ldisc.h @@ -114,9 +114,9 @@ struct tty_ldisc { void (*flush_buffer)(struct tty_struct *tty); ssize_t (*chars_in_buffer)(struct tty_struct *tty); ssize_t (*read)(struct tty_struct * tty, struct file * file, - unsigned char * buf, size_t nr); + unsigned char __user * buf, size_t nr); ssize_t (*write)(struct tty_struct * tty, struct file * file, - const unsigned char * buf, size_t nr); + const unsigned char __user * buf, size_t nr); int (*ioctl)(struct tty_struct * tty, struct file * file, unsigned int cmd, unsigned long arg); void (*set_termios)(struct tty_struct *tty, struct termios * old); -- cgit v1.2.3