mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
[PATCH] saa6588 __user annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
be88ec74cb
commit
ae8aed0314
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue