login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
4
Re: [PATCH] cifs endianness fixes
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Steve French <smfrench@...>
To: <torvalds@...>
Cc: <sfrench@...>, <linux-kernel@...>, Al Viro <viro@...>
Subject:
Re: [PATCH] cifs endianness fixes
Date: Wednesday, June 4, 2008 - 2:14 am
ACK Please merge On Mon, Jun 2, 2008 at 4:59 AM, Al Viro <viro@ftp.linux.org.uk> wrote:
quoted text
> > __le16 fields used as host-endian. > > Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> > --- > diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c > index 9b8b4cf..fb655b4 100644 > --- a/fs/cifs/cifssmb.c > +++ b/fs/cifs/cifssmb.c > @@ -3927,9 +3927,9 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr, > } > > ref = (struct dfs_referral_level_3 *) &(pSMBr->referrals); > - if (ref->VersionNumber != 3) { > + if (ref->VersionNumber != cpu_to_le16(3)) { > cERROR(1, ("Referrals of V%d version are not supported," > - "should be V3", ref->VersionNumber)); > + "should be V3", le16_to_cpu(ref->VersionNumber))); > rc = -EINVAL; > goto parse_DFS_referrals_exit; > } > @@ -3977,7 +3977,7 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr, > if (rc) > goto parse_DFS_referrals_exit; > > - ref += ref->Size; > + ref += le16_to_cpu(ref->Size); > } > > parse_DFS_referrals_exit: >
-- Thanks, Steve --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] cifs endianness fixes
, Al Viro
, (Mon Jun 2, 5:59 am)
Re: [PATCH] cifs endianness fixes
, Steve French
, (Wed Jun 4, 2:14 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
James Bottomley
Re: Integration of SCST in the mainstream Linux kernel
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Natalie Protasevich
[BUG] New Kernel Bugs
Gerrit Renker
[PATCH 18/37] dccp: Support for Mandatory options
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
812 guests
online.
Online users
muebcass908
olecom
Syndicate