diff options
author | Steve French <sfrench@us.ibm.com> | 2007-07-11 18:30:34 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-07-11 18:30:34 +0000 |
commit | 7521a3c566dda7bb09576975324fc0a08a79ad14 (patch) | |
tree | 2ba0405ea1a7f3f187c2434ef86000b1b65f2d01 /fs/cifs/file.c | |
parent | fb8c4b14d9259ba467241a7aaeb712caedce7ee8 (diff) | |
download | linux-3.10-7521a3c566dda7bb09576975324fc0a08a79ad14.tar.gz linux-3.10-7521a3c566dda7bb09576975324fc0a08a79ad14.tar.bz2 linux-3.10-7521a3c566dda7bb09576975324fc0a08a79ad14.zip |
[CIFS] Fix oops in cifs_create when nfsd server exports cifs mount
nfsd is passing null nameidata (probably the only one doing that)
on call to create - cifs was missing one check for this.
Note that running nfsd over a cifs mount requires specifying fsid on
the nfs exports entry and requires mounting cifs with serverino mount
option.
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r-- | fs/cifs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 7d6fb6f3ade..d83eca4231e 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -212,7 +212,7 @@ int cifs_open(struct inode *inode, struct file *file) return -ENOMEM; } - cFYI(1, (" inode = 0x%p file flags are 0x%x for %s", + cFYI(1, ("inode = 0x%p file flags are 0x%x for %s", inode, file->f_flags, full_path)); desiredAccess = cifs_convert_flags(file->f_flags); |