tree 2b33fb802f8dab8769bafaeb573289bb3cd72a49
parent 451771c40c6a0c44b57d4fbae8d6803e2213fa53
author Jakub Bogusz <[EMAIL PROTECTED]> Wed, 27 Jul 2005 03:45:51 -0700
committer David S. Miller <[EMAIL PROTECTED]> Wed, 27 Jul 2005 03:45:51 -0700

[SPARC64]: fix sys32_utimes(somefile, NULL)

This patch fixes utimes(somefile, NULL) syscalls on sparc64 kernel with
32-bit userland - use of uninitialized value resulted in making random
timestamps, which confused e.g. sudo.
It has been already fixed (by davem) in linux-2.6 tree 30 months ago.

Signed-off-by: Jakub Bogusz <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>

 arch/sparc64/kernel/sys_sparc32.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sparc64/kernel/sys_sparc32.c 
--- a/arch/sparc64/kernel/sys_sparc32.c
+++ b/arch/sparc64/kernel/sys_sparc32.c
@@ -4205,7 +4205,7 @@ asmlinkage int sys32_utimes(char *filena
                old_fs = get_fs();
-               ret = sys_utimes(kfilename, &ktvs[0]);
+               ret = sys_utimes(kfilename, (tvs ? &ktvs[0] : NULL));
To unsubscribe from this list: send the line "unsubscribe git-commits-24" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to