diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index 600162f4ddbf188eb1ad414c8d42f95b2068d319..ae2dfa709f5dcf2f8e5b1084f5bce89377942ccc 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c @@ -600,7 +600,7 @@ static int __f2fs_setxattr(struct inode *inode, int index, goto exit; } - if (f2fs_xattr_value_same(here, value, size)) + if (value && f2fs_xattr_value_same(here, value, size)) goto exit; } else if ((flags & XATTR_REPLACE)) { error = -ENODATA;