]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/overlayfs/copy_up.c
ovl: allow zero size xattr
[karo-tx-linux.git] / fs / overlayfs / copy_up.c
index 0a8983492d917bbc61888559e8417f738eb607be..927cb5668dc760bb317cde78b74ee8c6aa75ad7b 100644 (file)
@@ -54,7 +54,7 @@ int ovl_copy_xattr(struct dentry *old, struct dentry *new)
 
        for (name = buf; name < (buf + list_size); name += strlen(name) + 1) {
                size = vfs_getxattr(old, name, value, XATTR_SIZE_MAX);
-               if (size <= 0) {
+               if (size < 0) {
                        error = size;
                        goto out_free_value;
                }