From: Al Viro <viro@ftp.linux.org.uk>
To: Linus Torvalds <torvalds@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] saa6588 __user annotations
Date: Thu, 29 Sep 2005 00:37:34 +0100 [thread overview]
Message-ID: <20050928233734.GM7992@ftp.linux.org.uk> (raw)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
----
diff -urN RC14-rc2-git6-cyblafb/drivers/media/video/rds.h RC14-rc2-git6-saa6588/drivers/media/video/rds.h
--- RC14-rc2-git6-cyblafb/drivers/media/video/rds.h 2005-09-10 15:41:34.000000000 -0400
+++ RC14-rc2-git6-saa6588/drivers/media/video/rds.h 2005-09-28 13:02:19.000000000 -0400
@@ -31,7 +31,7 @@
struct rds_command {
unsigned int block_count;
int result;
- unsigned char *buffer;
+ unsigned char __user *buffer;
struct file *instance;
poll_table *event_list;
};
diff -urN RC14-rc2-git6-cyblafb/drivers/media/video/saa6588.c RC14-rc2-git6-saa6588/drivers/media/video/saa6588.c
--- RC14-rc2-git6-cyblafb/drivers/media/video/saa6588.c 2005-09-10 15:41:34.000000000 -0400
+++ RC14-rc2-git6-saa6588/drivers/media/video/saa6588.c 2005-09-28 13:02:19.000000000 -0400
@@ -157,7 +157,7 @@
/* ---------------------------------------------------------------------- */
-static int block_to_user_buf(struct saa6588 *s, unsigned char *user_buf)
+static int block_to_user_buf(struct saa6588 *s, unsigned char __user *user_buf)
{
int i;
@@ -191,7 +191,7 @@
{
unsigned long flags;
- unsigned char *buf_ptr = a->buffer; /* This is a user space buffer! */
+ unsigned char __user *buf_ptr = a->buffer;
unsigned int i;
unsigned int rd_blocks;
reply other threads:[~2005-09-28 23:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050928233734.GM7992@ftp.linux.org.uk \
--to=viro@ftp.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®