devsys: low protection makes no sense so remove
authorAlan Cox <alan@linux.intel.com>
Sat, 13 Feb 2016 21:21:57 +0000 (21:21 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 13 Feb 2016 21:21:57 +0000 (21:21 +0000)
Kernel/devsys.c

index 89e4e68..54e9f8c 100644 (file)
@@ -54,11 +54,6 @@ int sys_write(uint8_t minor, uint8_t rawflag, uint8_t flag)
   case 2:
     return udata.u_count;
   case 1:
-    /* FIXME: this needs to be a per CPU value */
-    if (udata.u_offset < 0x0100) {
-      udata.u_error = EPERM;
-      return -1;
-    }
     return ugetsys((unsigned char *)udata.u_offset, udata.u_count);
   case 3:
     udata.u_error = EINVAL;