Commit:     d57d973101e87b2e30ccfa899fe36c4b2e32d217
Parent:     0db19c412ce260a293b06b4bab66550b84411bfc
Author:     Alexander Graf <[EMAIL PROTECTED]>
AuthorDate: Fri Jul 6 02:39:53 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Jul 6 10:23:43 2007 -0700

    fix logic error in ipc compat semctl()
    When calling a semctl(IPC_STAT) without IPC_64 the check if the memory is
    unevaluated.  This patch fixes this.
    Signed-off-by: Alexander Graf <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 ipc/compat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ipc/compat.c b/ipc/compat.c
index 8b44aa9..ab76fb0 100644
--- a/ipc/compat.c
+++ b/ipc/compat.c
@@ -225,7 +225,7 @@ static inline int put_compat_semid_ds(struct semid64_ds *s,
        int err;
        if (!access_ok (VERIFY_WRITE, up, sizeof(*up)))
-               err = -EFAULT;
+               return -EFAULT;
        err  = __put_compat_ipc_perm(&s->sem_perm, &up->sem_perm);
        err |= __put_user(s->sem_otime, &up->sem_otime);
        err |= __put_user(s->sem_ctime, &up->sem_ctime);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to