Skip to content
Snippets Groups Projects
Commit 1950267e authored by Al Viro's avatar Al Viro
Browse files

hfs: SMP race on directory close()


->open_dir_list needs protection...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent f8ce1faf
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment