Skip to content

Commit 53470aa

Browse files
Al ViroLinus Torvalds
authored andcommitted
[PATCH] frv: misc __user annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 530018b commit 53470aa

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎arch/frv/kernel/irq.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ static struct proc_dir_entry * irq_dir [NR_IRQS];
625625

626626
#define HEX_DIGITS 8
627627

628-
static unsigned int parse_hex_value (const char *buffer,
628+
static unsigned int parse_hex_value (const char __user *buffer,
629629
unsigned long count, unsigned long *ret)
630630
{
631631
unsigned char hexnum [HEX_DIGITS];
@@ -672,7 +672,7 @@ static int prof_cpu_mask_read_proc (char *page, char **start, off_t off,
672672
return sprintf (page, "%08lx\n", *mask);
673673
}
674674

675-
static int prof_cpu_mask_write_proc (struct file *file, const char *buffer,
675+
static int prof_cpu_mask_write_proc (struct file *file, const char __user *buffer,
676676
unsigned long count, void *data)
677677
{
678678
unsigned long *mask = (unsigned long *) data, full_count = count, err;
@@ -711,7 +711,7 @@ void init_irq_proc (void)
711711
int i;
712712

713713
/* create /proc/irq */
714-
root_irq_dir = proc_mkdir("irq", 0);
714+
root_irq_dir = proc_mkdir("irq", NULL);
715715

716716
/* create /proc/irq/prof_cpu_mask */
717717
entry = create_proc_entry("prof_cpu_mask", 0600, root_irq_dir);

‎arch/frv/kernel/process.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ int copy_thread(int nr, unsigned long clone_flags,
246246
/*
247247
* sys_execve() executes a new program.
248248
*/
249-
asmlinkage int sys_execve(char *name, char **argv, char **envp)
249+
asmlinkage int sys_execve(char __user *name, char __user * __user *argv, char __user * __user *envp)
250250
{
251251
int error;
252252
char * filename;

‎arch/frv/kernel/sys_frv.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* sys_pipe() is the normal C calling standard for creating
3333
* a pipe. It's not the way unix traditionally does this, though.
3434
*/
35-
asmlinkage long sys_pipe(unsigned long * fildes)
35+
asmlinkage long sys_pipe(unsigned long __user * fildes)
3636
{
3737
int fd[2];
3838
int error;

‎include/asm-frv/checksum.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ unsigned int csum_partial_copy(const char *src, char *dst, int len, int sum);
4343
* here even more important to align src and dst on a 32-bit (or even
4444
* better 64-bit) boundary
4545
*/
46-
extern unsigned int csum_partial_copy_from_user(const char *src, char *dst,
46+
extern unsigned int csum_partial_copy_from_user(const char __user *src, char *dst,
4747
int len, int sum, int *csum_err);
4848

4949
#define csum_partial_copy_nocheck(src, dst, len, sum) \

0 commit comments

Comments
 (0)