diff options
-rw-r--r-- | fs/9p/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/acl.c b/fs/9p/acl.c index c9da2640f6f1..02a2cf616318 100644 --- a/fs/9p/acl.c +++ b/fs/9p/acl.c | |||
@@ -365,7 +365,7 @@ static int v9fs_xattr_set_acl(struct dentry *dentry, const char *name, | |||
365 | case ACL_TYPE_DEFAULT: | 365 | case ACL_TYPE_DEFAULT: |
366 | name = POSIX_ACL_XATTR_DEFAULT; | 366 | name = POSIX_ACL_XATTR_DEFAULT; |
367 | if (!S_ISDIR(inode->i_mode)) { | 367 | if (!S_ISDIR(inode->i_mode)) { |
368 | retval = -EINVAL; | 368 | retval = acl ? -EINVAL : 0; |
369 | goto err_out; | 369 | goto err_out; |
370 | } | 370 | } |
371 | break; | 371 | break; |