commit | 1950267e6e9dc2531f2790bf217aa7aadc9aa324 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun May 05 20:20:25 2013 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sun May 05 20:20:25 2013 -0400 |
tree | 96f7d380de56e18c4ab16f820d999c51eed152c9 | |
parent | f8ce1faf55955de62e0a12e330c6d9a526071f65 [diff] [blame] |
hfs: SMP race on directory close() ->open_dir_list needs protection... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/hfs/dir.c b/fs/hfs/dir.c index 17c22a8..e0101b6 100644 --- a/fs/hfs/dir.c +++ b/fs/hfs/dir.c
@@ -176,7 +176,9 @@ { 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;