提交 e26a7552 编写于 作者: A Alexey Khoroshilov 提交者: Greg Kroah-Hartman

Staging: pohmelfs/dir.c: Remove unneeded mutex_unlock() from pohmelfs_rename()

I do not see any reason for the mutex_unlock(&inode->i_mutex); in
pohmelfs_rename().

Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: NAlexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: NEvgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 4ac638b2
......@@ -1082,7 +1082,6 @@ static int pohmelfs_rename(struct inode *old_dir, struct dentry *old_dentry,
clear_bit(NETFS_INODE_REMOTE_SYNCED, &pi->state);
mutex_unlock(&inode->i_mutex);
return err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册