]> git.baikalelectronics.ru Git - kernel.git/commit
caif: fix endian conversion in cffrml_transmit()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 21 Nov 2011 21:46:24 +0000 (16:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2011 21:46:24 +0000 (16:46 -0500)
commit2486ed838598078f6da21e892c60f82e8c2e335e
tree02dc20b820a91d396a6a08818b56733a4bcddb28
parent97d6f7cd2daefdb0789db44d22cdf1674dfe1f07
caif: fix endian conversion in cffrml_transmit()

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@oracle.com>
Acked-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/cffrml.c