summaryrefslogtreecommitdiffstats
path: root/fs/cifs/fcntl.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-10-11 04:52:13 +0200
committerSteve French <sfrench@us.ibm.com>2005-10-11 04:52:13 +0200
commit4ca9c190d902caa7efb899a4c7fc8c6e6d926e95 (patch)
tree2c2cce67494a43c7cd35063435ac0d18a85dbe4d /fs/cifs/fcntl.c
parent[CIFS] Still missing a line from previous fix (diff)
downloadlinux-4ca9c190d902caa7efb899a4c7fc8c6e6d926e95.tar.xz
linux-4ca9c190d902caa7efb899a4c7fc8c6e6d926e95.zip
[CIFS] Fix oops in experimental notify code (when CONFIG_CIFS_EXPERIMENTAL
was turned on). Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/fcntl.c')
-rw-r--r--fs/cifs/fcntl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/fcntl.c b/fs/cifs/fcntl.c
index d527e2c76073..a7a47bb36bf3 100644
--- a/fs/cifs/fcntl.c
+++ b/fs/cifs/fcntl.c
@@ -78,6 +78,10 @@ int cifs_dir_notify(struct file * file, unsigned long arg)
__u32 filter = FILE_NOTIFY_CHANGE_NAME | FILE_NOTIFY_CHANGE_ATTRIBUTES;
__u16 netfid;
+
+ if(experimEnabled == 0)
+ return 0;
+
xid = GetXid();
cifs_sb = CIFS_SB(file->f_dentry->d_sb);
pTcon = cifs_sb->tcon;