diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-12 18:20:20 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-12 18:20:20 -0800 |
commit | 60b7eca1dc2ec066916b3b7ac6ad89bea13cb9af (patch) | |
tree | e95a890586b5d8113de5d1516a8b73add32876b0 /fs/ubifs/xattr.c | |
parent | 420d12d6ade1e9c02b98fb9a381a17d7ccc7d35e (diff) | |
parent | 4fdd1d51ad5d059548c6539ac9d281f74d24bcbe (diff) | |
download | kernel_replicant_linux-60b7eca1dc2ec066916b3b7ac6ad89bea13cb9af.tar.gz kernel_replicant_linux-60b7eca1dc2ec066916b3b7ac6ad89bea13cb9af.tar.bz2 kernel_replicant_linux-60b7eca1dc2ec066916b3b7ac6ad89bea13cb9af.zip |
Merge tag 'upstream-4.5-rc1' of git://git.infradead.org/linux-ubifs
Pull UBI/UBIFS updates from Richard Weinberger:
"This contains three changes - two cleanups and one UBI wear leveling
improvement by Sebastian Siewior"
* tag 'upstream-4.5-rc1' of git://git.infradead.org/linux-ubifs:
ubifs: Use XATTR_*_PREFIX_LEN
UBIFS: add a comment in key.h for unused parameter
mtd: ubi: wl: avoid erasing a PEB which is empty
Diffstat (limited to 'fs/ubifs/xattr.c')
-rw-r--r-- | fs/ubifs/xattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c index e8b01b721e99..e53292d0c21b 100644 --- a/fs/ubifs/xattr.c +++ b/fs/ubifs/xattr.c @@ -267,7 +267,7 @@ static int check_namespace(const struct qstr *nm) if (!strncmp(nm->name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) { - if (nm->name[sizeof(XATTR_TRUSTED_PREFIX) - 1] == '\0') + if (nm->name[XATTR_TRUSTED_PREFIX_LEN] == '\0') return -EINVAL; type = TRUSTED_XATTR; } else if (!strncmp(nm->name, XATTR_USER_PREFIX, @@ -277,7 +277,7 @@ static int check_namespace(const struct qstr *nm) type = USER_XATTR; } else if (!strncmp(nm->name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN)) { - if (nm->name[sizeof(XATTR_SECURITY_PREFIX) - 1] == '\0') + if (nm->name[XATTR_SECURITY_PREFIX_LEN] == '\0') return -EINVAL; type = SECURITY_XATTR; } else |