Lines Matching refs:length
257 if (header->sign != POLICY_SIGN_COOKIE || !header->length) {
262 if (dev->policy_sz < header->length + 512)
265 /* Update the actual length */
266 dev->policy_sz = header->length + 512;
293 size_t length, loff_t *pos)
300 if (length > POLICY_BUF_MAX_SZ || length == 0)
303 /* re-alloc to the new buffer length of the policy binary */
304 new_policy_buf = kzalloc(length, GFP_KERNEL);
308 if (copy_from_user(new_policy_buf, buf, length)) {
315 dev->policy_sz = length;
322 return length;