Hello.
Nathan Fontenot wrote:
Index: linux-2.6.git/arch/powerpc/kernel/rtas.c
===================================================================
--- linux-2.6.git.orig/arch/powerpc/kernel/rtas.c 2008-07-22
09:34:03.000000000 -0500
+++ linux-2.6.git/arch/powerpc/kernel/rtas.c 2008-07-25
16:06:00.000000000 -0500
@@ -775,6 +775,8 @@
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
+ memset(&args, 0, sizeof(args));
+
You could use memzero() directly -- memset(x, 0, sizeof(x))l should
boil down to it anyway...
if (copy_from_user(&args, uargs, 3 * sizeof(u32)) != 0)
return -EFAULT;
WBR, Sergei
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev