Kernel/capabilities: Remove redundant size check from check_caps_create_arguments.
authorMoritz Hoffmann <moritz.hoffmann@inf.ethz.ch>
Thu, 13 Oct 2016 14:35:07 +0000 (16:35 +0200)
committerMoritz Hoffmann <moritz.hoffmann@inf.ethz.ch>
Thu, 13 Oct 2016 14:40:53 +0000 (16:40 +0200)
Signed-off-by: Moritz Hoffmann <moritz.hoffmann@inf.ethz.ch>

kernel/capabilities.c

index 94b0815..cc727da 100644 (file)
@@ -1362,10 +1362,6 @@ static bool check_caps_create_arguments(enum objtype type,
             return false;
         }
 
-        if (exact && bytes % OBJSIZE_DISPATCHER) {
-            return false;
-        }
-
         return true;
     }