From 717b0cbce0914f5387ae65e6e8243828a54bc083 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Thu, 3 Jun 2004 07:38:06 -0700 Subject: [PATCH] [PATCH] sparse: netlink annotation --- net/netlink/netlink_dev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/netlink/netlink_dev.c b/net/netlink/netlink_dev.c index bf5d86a27a327..72059f182a40f 100644 --- a/net/netlink/netlink_dev.c +++ b/net/netlink/netlink_dev.c @@ -54,7 +54,7 @@ static unsigned int netlink_poll(struct file *file, poll_table * wait) * Write a message to the kernel side of a communication link */ -static ssize_t netlink_write(struct file * file, const char * buf, +static ssize_t netlink_write(struct file * file, const char __user * buf, size_t count, loff_t *pos) { struct inode *inode = file->f_dentry->d_inode; @@ -62,7 +62,7 @@ static ssize_t netlink_write(struct file * file, const char * buf, struct msghdr msg; struct iovec iov; - iov.iov_base = (void*)buf; + iov.iov_base = (void __user*)buf; iov.iov_len = count; msg.msg_name=NULL; msg.msg_namelen=0; @@ -78,7 +78,7 @@ static ssize_t netlink_write(struct file * file, const char * buf, * Read a message from the kernel side of the communication link */ -static ssize_t netlink_read(struct file * file, char * buf, +static ssize_t netlink_read(struct file * file, char __user * buf, size_t count, loff_t *pos) { struct inode *inode = file->f_dentry->d_inode; -- 2.53.0