xtensa: fix incorrect memset
authorAlan Cox <[email protected]>
Wed, 11 Jul 2012 21:02:50 +0000 (14:02 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Jul 2012 23:04:49 +0000 (16:04 -0700)
Addresses: https://bugzilla.kernel.org/show_bug.cgi?id=43871

Reported-by: <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Chris Zankel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/xtensa/kernel/process.c

index 9b306e550e3f06ddfa342c041c7793543702c4b3..2c8d6a3d250afd2d18fa8b41b03dc26b0ad97ca2 100644 (file)
@@ -277,7 +277,7 @@ void xtensa_elf_core_copy_regs (xtensa_gregset_t *elfregs, struct pt_regs *regs)
 
        /* Don't leak any random bits. */
 
-       memset(elfregs, 0, sizeof (elfregs));
+       memset(elfregs, 0, sizeof(*elfregs));
 
        /* Note:  PS.EXCM is not set while user task is running; its
         * being set in regs->ps is for exception handling convenience.