diff options
author | Cyril Gorcunov <gorcunov@gmail.com> | 2007-10-14 19:58:43 +0200 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-10-14 19:58:43 +0200 |
commit | 8f2376adfb57d95973b64ecdf016937f436b9bf0 (patch) | |
tree | 830a7f20af90be883a684fddc71a18f7c11df2b6 /fs/cifs/inode.c | |
parent | [CIFS] fix build break when lanman not enabled (diff) | |
download | linux-8f2376adfb57d95973b64ecdf016937f436b9bf0.tar.xz linux-8f2376adfb57d95973b64ecdf016937f436b9bf0.zip |
[CIFS] Fix endian conversion problem in posix mkdir
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index ece17ca00d08..cc119b278e5b 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -947,7 +947,8 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode) d_drop(direntry); } else { int obj_type; - if (pInfo->Type == -1) /* no return info - go query */ { + if (pInfo->Type == cpu_to_le32(-1)) { + /* no return info, go query for it */ kfree(pInfo); goto mkdir_get_info; } |