提交 1950267e 编写于 作者: A Al Viro

hfs: SMP race on directory close()

->open_dir_list needs protection...
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 f8ce1faf
......@@ -176,7 +176,9 @@ static int hfs_dir_release(struct inode *inode, struct file *file)
{
struct hfs_readdir_data *rd = file->private_data;
if (rd) {
mutex_lock(&inode->i_mutex);
list_del(&rd->list);
mutex_unlock(&inode->i_mutex);
kfree(rd);
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册