diff options
-rw-r--r-- | fs/reiserfs/xattr_acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/reiserfs/xattr_acl.c b/fs/reiserfs/xattr_acl.c index c303c426fe2b..a1a7e3530e17 100644 --- a/fs/reiserfs/xattr_acl.c +++ b/fs/reiserfs/xattr_acl.c | |||
@@ -194,7 +194,7 @@ static inline void iset_acl(struct inode *inode, struct posix_acl **i_acl, | |||
194 | spin_lock(&inode->i_lock); | 194 | spin_lock(&inode->i_lock); |
195 | if (*i_acl != ERR_PTR(-ENODATA)) | 195 | if (*i_acl != ERR_PTR(-ENODATA)) |
196 | posix_acl_release(*i_acl); | 196 | posix_acl_release(*i_acl); |
197 | *i_acl = posix_acl_dup(acl); | 197 | *i_acl = acl ? posix_acl_dup(acl) : ERR_PTR(-ENODATA); |
198 | spin_unlock(&inode->i_lock); | 198 | spin_unlock(&inode->i_lock); |
199 | } | 199 | } |
200 | 200 | ||