[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111121063356.GH2203@ZenIV.linux.org.uk>
Date: Mon, 21 Nov 2011 06:33:56 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Sjur Braendeland <sjur.brandeland@...ricsson.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [patch] caif: fix endian conversion in cffrml_transmit()
On Mon, Nov 21, 2011 at 09:17:22AM +0300, Dan Carpenter wrote:
> The "tmp" variable here is used to store the result of cpu_to_le16()
> so it should be a u16 instead of an int. We want the high bits set
> and the current code works on little endian systems but not on big
> endian systems.
Charming... On b-e we end up feeding zeroes instead of the value we want.
However, that u16 clearly ought to be __le16 - it's there for purpose.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists