[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20111121.164643.58544532996822474.davem@davemloft.net>
Date: Mon, 21 Nov 2011 16:46:43 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: sjurbren@...il.com
Cc: dan.carpenter@...cle.com, viro@...iv.linux.org.uk,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [patch v2] caif: fix endian conversion in cffrml_transmit()
From: Sjur Brændeland <sjurbren@...il.com>
Date: Mon, 21 Nov 2011 22:20:09 +0100
>> The "tmp" variable here is used to store the result of cpu_to_le16()
>> so it should be an __le16 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.
>>
>> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
>> ---
>> v2: In v1 I used a u16 instead of an __le16. Also I've changed the
>> name to "data" instead of "tmp".
>
> Thanks Dan, good catch - this would have failed badly on a b_e architecture.
>
> Acked-by: Sjur Brændeland <sjur.brandeland@...ricsson.com>
Applied, thanks guys.
--
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