File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ static int check_namespace(const struct qstr *nm)
267
267
268
268
if (!strncmp (nm -> name , XATTR_TRUSTED_PREFIX ,
269
269
XATTR_TRUSTED_PREFIX_LEN )) {
270
- if (nm -> name [sizeof ( XATTR_TRUSTED_PREFIX ) - 1 ] == '\0' )
270
+ if (nm -> name [XATTR_TRUSTED_PREFIX_LEN ] == '\0' )
271
271
return - EINVAL ;
272
272
type = TRUSTED_XATTR ;
273
273
} else if (!strncmp (nm -> name , XATTR_USER_PREFIX ,
@@ -277,7 +277,7 @@ static int check_namespace(const struct qstr *nm)
277
277
type = USER_XATTR ;
278
278
} else if (!strncmp (nm -> name , XATTR_SECURITY_PREFIX ,
279
279
XATTR_SECURITY_PREFIX_LEN )) {
280
- if (nm -> name [sizeof ( XATTR_SECURITY_PREFIX ) - 1 ] == '\0' )
280
+ if (nm -> name [XATTR_SECURITY_PREFIX_LEN ] == '\0' )
281
281
return - EINVAL ;
282
282
type = SECURITY_XATTR ;
283
283
} else
You can’t perform that action at this time.
0 commit comments