author: Hugh Dickins <hughd@google.com> 2014-07-23 14:00:17 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2014-07-23 15:10:55 -0700
commit: 4e66d445d0421a159135572a0ba44b75c7c4adfa
parent: 792ceaefe62189e3beea612ec0a052e42a81e993
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/xattr.c b/fs/xattr.c
index 3377dff18404..c69e6d43a0d2 100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
@@ -843,7 +843,7 @@ struct simple_xattr *simple_xattr_alloc(const void *value, size_t size)
/* wrap around? */
len = sizeof(*new_xattr) + size;
- if (len <= sizeof(*new_xattr))
+ if (len < sizeof(*new_xattr))
return NULL;
new_xattr = kmalloc(len, GFP_KERNEL);