Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8cc8c28a9acdceda0e60519167a052cc3408c5c3
Commit:     8cc8c28a9acdceda0e60519167a052cc3408c5c3
Parent:     9c908f97d0f9aee32fa6d4b0a44c4c5d0ccab2b0
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Sun Sep 30 17:00:34 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sun Sep 30 17:00:34 2007 -0700

    [SPARC64]: Fix put_user() calls in binfmt_aout32.c
    
    argv and envp are pointers to u32's in userspace, so don't
    try to put_user() a NULL to them.
    
    Aparently gcc-4.2.x now warns about this, and since we use
    -Werror for arch/sparc64 code, this breaks the build.
    
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 arch/sparc64/kernel/binfmt_aout32.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sparc64/kernel/binfmt_aout32.c 
b/arch/sparc64/kernel/binfmt_aout32.c
index f205fc7..d208cc7 100644
--- a/arch/sparc64/kernel/binfmt_aout32.c
+++ b/arch/sparc64/kernel/binfmt_aout32.c
@@ -177,7 +177,7 @@ static u32 __user *create_aout32_tables(char __user *p, 
struct linux_binprm *bpr
                        get_user(c,p++);
                } while (c);
        }
-       put_user(NULL,argv);
+       put_user(0,argv);
        current->mm->arg_end = current->mm->env_start = (unsigned long) p;
        while (envc-->0) {
                char c;
@@ -186,7 +186,7 @@ static u32 __user *create_aout32_tables(char __user *p, 
struct linux_binprm *bpr
                        get_user(c,p++);
                } while (c);
        }
-       put_user(NULL,envp);
+       put_user(0,envp);
        current->mm->env_end = (unsigned long) p;
        return sp;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to