Skip to content

Commit

Permalink
[PATCH] saa6588 __user annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Sep 29, 2005
1 parent be88ec7 commit ae8aed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/rds.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
4 changes: 2 additions & 2 deletions drivers/media/video/saa6588.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static struct i2c_client client_template;

/* ---------------------------------------------------------------------- */

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;

Expand Down Expand Up @@ -191,7 +191,7 @@ static void read_from_buf(struct saa6588 *s, struct rds_command *a)
{
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;

Expand Down

0 comments on commit ae8aed0

Please sign in to comment.