diff options
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 9b8b4cfdf993..fb655b4593c6 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -3927,9 +3927,9 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr, | |||
3927 | } | 3927 | } |
3928 | 3928 | ||
3929 | ref = (struct dfs_referral_level_3 *) &(pSMBr->referrals); | 3929 | ref = (struct dfs_referral_level_3 *) &(pSMBr->referrals); |
3930 | if (ref->VersionNumber != 3) { | 3930 | if (ref->VersionNumber != cpu_to_le16(3)) { |
3931 | cERROR(1, ("Referrals of V%d version are not supported," | 3931 | cERROR(1, ("Referrals of V%d version are not supported," |
3932 | "should be V3", ref->VersionNumber)); | 3932 | "should be V3", le16_to_cpu(ref->VersionNumber))); |
3933 | rc = -EINVAL; | 3933 | rc = -EINVAL; |
3934 | goto parse_DFS_referrals_exit; | 3934 | goto parse_DFS_referrals_exit; |
3935 | } | 3935 | } |
@@ -3977,7 +3977,7 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr, | |||
3977 | if (rc) | 3977 | if (rc) |
3978 | goto parse_DFS_referrals_exit; | 3978 | goto parse_DFS_referrals_exit; |
3979 | 3979 | ||
3980 | ref += ref->Size; | 3980 | ref += le16_to_cpu(ref->Size); |
3981 | } | 3981 | } |
3982 | 3982 | ||
3983 | parse_DFS_referrals_exit: | 3983 | parse_DFS_referrals_exit: |