Skip to contentSkip to conversation

[4630] Fix structure type in sigtimedwait syscall.

Qemu-devel Paul Brook 1 participant 1 message May 30, 2008

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 4630

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4630
Author:   pbrook
Date:     2008-05-30 21:53:38 +0000 (Fri, 30 May 2008)

Log Message:
-----------
Fix structure type in sigtimedwait syscall.

Modified Paths:
--------------
trunk/linux-user/syscall.c

Modified: trunk/linux-user/syscall.c
===================================================================

linux-user/syscall.c +2 -2
@@ -3920,10 +3920,10 @@
             }
             ret = get_errno(sigtimedwait(&set, &uinfo, puts));
             if (!is_error(ret) && arg2) {
-                if (!(p = lock_user(VERIFY_WRITE, arg2, sizeof(target_sigset_t), 0)))
+                if (!(p = lock_user(VERIFY_WRITE, arg2, sizeof(target_siginfo_t), 0)))
                     goto efault;
                 host_to_target_siginfo(p, &uinfo);
-                unlock_user(p, arg2, sizeof(target_sigset_t));
+                unlock_user(p, arg2, sizeof(target_siginfo_t));
             }
         }
         break;