Skip to contentSkip to conversation

Add a missing return in syscall.c

PATCH In review Laurent Desnogues 2 participants 2 messages Oct 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add a missing return in syscall.c

Hello,

svn commit 5483 lacks a return in abi_long host_to_target_msginfo.

Laurent

syscall.c +1 -0
Index: linux-user/syscall.c
===================================================================
@@ -1934,6 +1934,7 @@
     __put_user(host_msginfo->msgtql, &target_msginfo->msgtql);
     __put_user(host_msginfo->msgseg, &target_msginfo->msgseg);
     unlock_user_struct(target_msginfo, target_addr, 1);
+    return 0;
 }
 
 static inline abi_long do_msgctl(int msgid, int cmd, abi_long ptr)
#1 lore raw
Quoted 12 lines · Laurent Desnogues

Hello,

svn commit 5483 lacks a return in abi_long host_to_target_msginfo.

Laurent

Index: linux-user/syscall.c
===================================================================

syscall.c line 1940

Quoted 7 lines
syscall.c +1 -0
@@ -1934,6 +1934,7 @@
     __put_user(host_msginfo->msgtql, &target_msginfo->msgtql);
     __put_user(host_msginfo->msgseg, &target_msginfo->msgseg);
     unlock_user_struct(target_msginfo, target_addr, 1);
+    return 0;
 }
 
 static inline abi_long do_msgctl(int msgid, int cmd, abi_long ptr)

Ack.

Thanks.

Signature · 3 lines
Regards,  Kirill A. Shutemov
 + Belarus, Minsk
 + ALT Linux Team, http://www.altlinux.com/