Skip to content

Commit

Permalink
xtensa: fix incorrect memset
Browse files Browse the repository at this point in the history
Addresses: https://bugzilla.kernel.org/show_bug.cgi?id=43871

Reported-by: <dcb314@hotmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Alan Cox authored and torvalds committed Jul 11, 2012
1 parent b065b43 commit 688bb41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/kernel/process.c
Expand Up @@ -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.
Expand Down

0 comments on commit 688bb41

Please sign in to comment.