]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - ipc/util.c
[PATCH] LSM: add missing hook to do_compat_readv_writev()
[linux-2.6-omap-h63xx.git] / ipc / util.c
index 5e785a29e1e63349ff35f8a1b3282f468fd24277..b3dcfad3b4f72075b7c338dc182eeb0c2403d482 100644 (file)
@@ -183,8 +183,7 @@ static int grow_ary(struct ipc_ids* ids, int newsize)
        if(new == NULL)
                return size;
        new->size = newsize;
-       memcpy(new->p, ids->entries->p, sizeof(struct kern_ipc_perm *)*size +
-                                       sizeof(struct ipc_id_ary));
+       memcpy(new->p, ids->entries->p, sizeof(struct kern_ipc_perm *)*size);
        for(i=size;i<newsize;i++) {
                new->p[i] = NULL;
        }