diff options
author | Steve French <sfrench@us.ibm.com> | 2005-10-11 06:52:13 +0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-10-11 06:52:13 +0400 |
commit | 4ca9c190d902caa7efb899a4c7fc8c6e6d926e95 (patch) | |
tree | 2c2cce67494a43c7cd35063435ac0d18a85dbe4d /fs/cifs/fcntl.c | |
parent | 34210f33025a3256b9ac3f0a182f02f1879140cb (diff) | |
download | linux-4ca9c190d902caa7efb899a4c7fc8c6e6d926e95.tar.xz |
[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.c | 4 |
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; |