projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8ce1fa
)
hfs: SMP race on directory close()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 6 May 2013 00:20:25 +0000
(20:20 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 6 May 2013 00:20:25 +0000
(20:20 -0400)
->open_dir_list needs protection...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hfs/dir.c
patch
|
blob
|
history
diff --git
a/fs/hfs/dir.c
b/fs/hfs/dir.c
index
17c22a8
..
e0101b6
100644
(file)
--- a/
fs/hfs/dir.c
+++ b/
fs/hfs/dir.c
@@
-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;