summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-31 21:36:39 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-31 21:36:39 +0100
commit415f9b71d17d294c2f2075b3fc7717d72e5e48f9 (patch)
tree2baf33529d5de478b2501b7fa155d4cc95d35627 /fs
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc (diff)
parentcifs: initialize file_info_lock (diff)
downloadlinux-415f9b71d17d294c2f2075b3fc7717d72e5e48f9.tar.xz
linux-415f9b71d17d294c2f2075b3fc7717d72e5e48f9.zip
Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6
Pull cifs fix from Steve French: "A small cifs fix for stable" * 'for-next' of git://git.samba.org/sfrench/cifs-2.6: cifs: initialize file_info_lock
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/readdir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
index 8f6a2a5863b9..a27fc8791551 100644
--- a/fs/cifs/readdir.c
+++ b/fs/cifs/readdir.c
@@ -285,6 +285,7 @@ initiate_cifs_search(const unsigned int xid, struct file *file)
rc = -ENOMEM;
goto error_exit;
}
+ spin_lock_init(&cifsFile->file_info_lock);
file->private_data = cifsFile;
cifsFile->tlink = cifs_get_tlink(tlink);
tcon = tlink_tcon(tlink);