Commit 4efc6555 authored by David Mosberger's avatar David Mosberger

ia64: Fix copy_siginfo() to copy all relevant bytes.

parent 464440a4
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* PAL & SAL emulation. * PAL & SAL emulation.
* *
* Copyright (C) 1998-2001 Hewlett-Packard Co * Copyright (C) 1998-2001 Hewlett-Packard Co
* Copyright (C) 1998-2001 David Mosberger-Tang <davidm@hpl.hp.com> * David Mosberger-Tang <davidm@hpl.hp.com>
* *
* For the HP simulator, this file gets include in boot/bootloader.c. * For the HP simulator, this file gets include in boot/bootloader.c.
* For SoftSDV, this file gets included in sys_softsdv.c. * For SoftSDV, this file gets included in sys_softsdv.c.
......
...@@ -148,8 +148,8 @@ copy_siginfo (siginfo_t *to, siginfo_t *from) ...@@ -148,8 +148,8 @@ copy_siginfo (siginfo_t *to, siginfo_t *from)
if (from->si_code < 0) if (from->si_code < 0)
memcpy(to, from, sizeof(siginfo_t)); memcpy(to, from, sizeof(siginfo_t));
else else
/* _sigchld is currently the largest know union member */ /* _sigprof is currently the largest know union member */
memcpy(to, from, 4*sizeof(int) + sizeof(from->_sifields._sigchld)); memcpy(to, from, 4*sizeof(int) + sizeof(from->_sifields._sigprof));
} }
extern int copy_siginfo_from_user(siginfo_t *to, siginfo_t *from); extern int copy_siginfo_from_user(siginfo_t *to, siginfo_t *from);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment