diff --git a/fs/namei.c b/fs/namei.c index aafba8d2bea8..14e600711f50 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -4497,8 +4497,7 @@ int vfs_rename(struct inode *old_dir, struct dentry *old_dentry, d_exchange(old_dentry, new_dentry); } out: - if (source) - inode_unlock(source); + inode_unlock(source); if (target) inode_unlock(target); dput(new_dentry);