aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-10-11 23:28:28 -0400
committerSteve French <sfrench@us.ibm.com>2006-10-11 23:28:28 -0400
commitacf1a1b1043327b2179ea529730358e58c7c277e (patch)
tree6753f8c0a8626e9159d4c9d5dbb2f3c4b5f87eba /fs/cifs/inode.c
parentddae957da48cc381c1472a8909905e1818e4afdd (diff)
[CIFS] Level 1 QPathInfo needed for proper OS2 support
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r--fs/cifs/inode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 06dbce3a1815..fe6d21f99964 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -338,6 +338,7 @@ int cifs_get_inode_info(struct inode **pinode,
338 pfindData = (FILE_ALL_INFO *)buf; 338 pfindData = (FILE_ALL_INFO *)buf;
339 /* could do find first instead but this returns more info */ 339 /* could do find first instead but this returns more info */
340 rc = CIFSSMBQPathInfo(xid, pTcon, search_path, pfindData, 340 rc = CIFSSMBQPathInfo(xid, pTcon, search_path, pfindData,
341 0 /* not legacy */,
341 cifs_sb->local_nls, cifs_sb->mnt_cifs_flags & 342 cifs_sb->local_nls, cifs_sb->mnt_cifs_flags &
342 CIFS_MOUNT_MAP_SPECIAL_CHR); 343 CIFS_MOUNT_MAP_SPECIAL_CHR);
343 /* BB optimize code so we do not make the above call 344 /* BB optimize code so we do not make the above call
@@ -385,8 +386,10 @@ int cifs_get_inode_info(struct inode **pinode,
385 /* get new inode */ 386 /* get new inode */
386 if (*pinode == NULL) { 387 if (*pinode == NULL) {
387 *pinode = new_inode(sb); 388 *pinode = new_inode(sb);
388 if (*pinode == NULL) 389 if (*pinode == NULL) {
390 kfree(buf);
389 return -ENOMEM; 391 return -ENOMEM;
392 }
390 /* Is an i_ino of zero legal? Can we use that to check 393 /* Is an i_ino of zero legal? Can we use that to check
391 if the server supports returning inode numbers? Are 394 if the server supports returning inode numbers? Are
392 there other sanity checks we can use to ensure that 395 there other sanity checks we can use to ensure that