X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fnetlink%2Fnetlink_dev.c;h=72059f182a40f84264dafad455aa6b8868e8125f;hb=5fc42a6ed0ec81088c37caadb45898ae6cd0ad2c;hp=bf5d86a27a3272fa32c2aa5d6f4900ccb33bb91b;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/net/netlink/netlink_dev.c b/net/netlink/netlink_dev.c index bf5d86a27..72059f182 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;