[IA64] ia32_signal.c: erroneous use of memset/memcpy
authorArun Sharma <arun.sharma@intel.com>
Fri, 22 Apr 2005 20:06:47 +0000 (13:06 -0700)
committerTony Luck <tony.luck@intel.com>
Fri, 22 Apr 2005 20:06:47 +0000 (13:06 -0700)
commit7130667107cd3ab9d6802b69bab63c7d22f20bd4
treeb4467b2d08a139961e709cfb41bd1f9280249155
parentefab7739d99eae948971140b2aa3dddf7f72c900
[IA64] ia32_signal.c: erroneous use of memset/memcpy

Found by Alexander Nyberg, improved by Bjorn Helgaas.

- Fix the incorrect argument to sizeof()
- looks like memcpy() code pass was dervived from code that used
  copy_from_user().  But in this case we are doing to kernel space
  to kernel space copy, so memcpy is the right routine, but it
  doesn't return an error code.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/ia32/ia32_signal.c