diff options
author | Steve French <sfrench@us.ibm.com> | 2010-04-22 15:21:55 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-04-22 15:21:55 -0400 |
commit | fa588e0c57048b3d4bfcd772d80dc0615f83fd35 (patch) | |
tree | a357298481dc4a8ab7f00998b065b9fee7e36d20 /fs/cifs/cifsproto.h | |
parent | 2c964d1f7c87eb71f7902111cd7c8fbba225e4b6 (diff) |
[CIFS] Allow null nd (as nfs server uses) on create
While creating a file on a server which supports unix extensions
such as Samba, if a file is being created which does not supply
nameidata (i.e. nd is null), cifs client can oops when calling
cifs_posix_open.
Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 32262e15be39..cc622a735f29 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h | |||
@@ -107,8 +107,10 @@ extern struct cifsFileInfo *cifs_new_fileinfo(struct inode *newinode, | |||
107 | __u16 fileHandle, struct file *file, | 107 | __u16 fileHandle, struct file *file, |
108 | struct vfsmount *mnt, unsigned int oflags); | 108 | struct vfsmount *mnt, unsigned int oflags); |
109 | extern int cifs_posix_open(char *full_path, struct inode **pinode, | 109 | extern int cifs_posix_open(char *full_path, struct inode **pinode, |
110 | struct vfsmount *mnt, int mode, int oflags, | 110 | struct vfsmount *mnt, |
111 | __u32 *poplock, __u16 *pnetfid, int xid); | 111 | struct super_block *sb, |
112 | int mode, int oflags, | ||
113 | __u32 *poplock, __u16 *pnetfid, int xid); | ||
112 | extern void cifs_unix_basic_to_fattr(struct cifs_fattr *fattr, | 114 | extern void cifs_unix_basic_to_fattr(struct cifs_fattr *fattr, |
113 | FILE_UNIX_BASIC_INFO *info, | 115 | FILE_UNIX_BASIC_INFO *info, |
114 | struct cifs_sb_info *cifs_sb); | 116 | struct cifs_sb_info *cifs_sb); |