]> Zhao Yanbai Git Server - minix.git/commitdiff
Removed check for grants that wrap.
authorPhilip Homburg <philip@cs.vu.nl>
Tue, 7 Aug 2007 12:19:45 +0000 (12:19 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Tue, 7 Aug 2007 12:19:45 +0000 (12:19 +0000)
kernel/system/do_safecopy.c

index efe89395ac1bd60b6abdb03cf5393f4312427440..b8c4d78921bf6705523fb3fbb7b05ea8f446ae14 100644 (file)
@@ -141,15 +141,6 @@ endpoint_t *e_granter;             /* new granter (magic grants) */
                        return EPERM;
                }
 
-               /* Don't fiddle around with grants that wrap, arithmetic
-                * below may be confused.
-                */
-               if(MEM_TOP - g.cp_u.cp_magic.cp_len <
-                       g.cp_u.cp_magic.cp_start - 1) {
-                       kprintf("magic grant verify failed: len too long\n");
-                       return EPERM;
-               }
-
                /* Verify actual grantee. */
                if(g.cp_u.cp_magic.cp_who_to != grantee && grantee != ANY) {
                        kprintf("magic grant verify failed: bad grantee\n");