summaryrefslogtreecommitdiffstats
path: root/fs/cifs/fcntl.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-10-10 19:52:13 -0700
committerSteve French <sfrench@us.ibm.com>2005-10-10 19:52:13 -0700
commit4ca9c190d902caa7efb899a4c7fc8c6e6d926e95 (patch)
tree2c2cce67494a43c7cd35063435ac0d18a85dbe4d /fs/cifs/fcntl.c
parent34210f33025a3256b9ac3f0a182f02f1879140cb (diff)
downloadop-kernel-dev-4ca9c190d902caa7efb899a4c7fc8c6e6d926e95.zip
op-kernel-dev-4ca9c190d902caa7efb899a4c7fc8c6e6d926e95.tar.gz
[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 d527e2c..a7a47bb 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;
OpenPOWER on IntegriCloud