diff options
Diffstat (limited to 'fs/xattr.c')
| -rw-r--r-- | fs/xattr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xattr.c b/fs/xattr.c index 4ef698549e31..072fee1258dd 100644 --- a/fs/xattr.c +++ b/fs/xattr.c | |||
| @@ -298,18 +298,18 @@ vfs_removexattr(struct dentry *dentry, const char *name) | |||
| 298 | 298 | ||
| 299 | mutex_lock(&inode->i_mutex); | 299 | mutex_lock(&inode->i_mutex); |
| 300 | error = security_inode_removexattr(dentry, name); | 300 | error = security_inode_removexattr(dentry, name); |
| 301 | if (error) { | 301 | if (error) |
| 302 | mutex_unlock(&inode->i_mutex); | 302 | goto out; |
| 303 | return error; | ||
| 304 | } | ||
| 305 | 303 | ||
| 306 | error = inode->i_op->removexattr(dentry, name); | 304 | error = inode->i_op->removexattr(dentry, name); |
| 307 | mutex_unlock(&inode->i_mutex); | ||
| 308 | 305 | ||
| 309 | if (!error) { | 306 | if (!error) { |
| 310 | fsnotify_xattr(dentry); | 307 | fsnotify_xattr(dentry); |
| 311 | evm_inode_post_removexattr(dentry, name); | 308 | evm_inode_post_removexattr(dentry, name); |
| 312 | } | 309 | } |
| 310 | |||
| 311 | out: | ||
| 312 | mutex_unlock(&inode->i_mutex); | ||
| 313 | return error; | 313 | return error; |
| 314 | } | 314 | } |
| 315 | EXPORT_SYMBOL_GPL(vfs_removexattr); | 315 | EXPORT_SYMBOL_GPL(vfs_removexattr); |
