aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 174bf8aca237..4511b708f0f3 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -3925,9 +3925,9 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr,
3925 } 3925 }
3926 3926
3927 ref = (struct dfs_referral_level_3 *) &(pSMBr->referrals); 3927 ref = (struct dfs_referral_level_3 *) &(pSMBr->referrals);
3928 if (ref->VersionNumber != 3) { 3928 if (ref->VersionNumber != cpu_to_le16(3)) {
3929 cERROR(1, ("Referrals of V%d version are not supported," 3929 cERROR(1, ("Referrals of V%d version are not supported,"
3930 "should be V3", ref->VersionNumber)); 3930 "should be V3", le16_to_cpu(ref->VersionNumber)));
3931 rc = -EINVAL; 3931 rc = -EINVAL;
3932 goto parse_DFS_referrals_exit; 3932 goto parse_DFS_referrals_exit;
3933 } 3933 }
@@ -3975,7 +3975,7 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr,
3975 if (rc) 3975 if (rc)
3976 goto parse_DFS_referrals_exit; 3976 goto parse_DFS_referrals_exit;
3977 3977
3978 ref += ref->Size; 3978 ref += le16_to_cpu(ref->Size);
3979 } 3979 }
3980 3980
3981parse_DFS_referrals_exit: 3981parse_DFS_referrals_exit: