cxgb4: Fix endianness issue in t4_fwcache()
authorGanesh Goudar <ganeshgr@chelsio.com>
Fri, 14 Sep 2018 09:06:27 +0000 (14:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Sep 2018 15:40:53 +0000 (08:40 -0700)
commit0dc235afc59a226d951352b0adf4a89b532a9d13
tree6d6227cc0b8d455c18b785fddcdbc6f67d973b29
parent52bb6677d530d37055092d86b4eab69dce6c166a
cxgb4: Fix endianness issue in t4_fwcache()

Do not put host-endian 0 or 1 into big endian feild.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c