Print this page
asdf

@@ -130,17 +130,10 @@
         bzero(fl, sizeof (*fl));
         off = nl->l_offset;
         len = nl->l_len;
 
         if (vers < NLM4_VERS) {
-                /*
-                 * Make sure range is valid for 32-bit client.
-                 * Also allow len == ~0 to mean lock to EOF,
-                 * which is supposed to be l_len == 0.
-                 */
-                if (len == MAX_UOFF32)
-                        len = 0;
                 if (off > MAX_UOFF32 || len > MAX_UOFF32)
                         return (EINVAL);
                 if (off + len > MAX_UOFF32 + 1)
                         return (EINVAL);
         } else {