OSDN Git Service

net/smc: fix byte_order for rx_curs_confirmed
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 7 Feb 2019 13:52:54 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:21:09 +0000 (09:21 +0100)
commit5c29e33a2245be2a2a21657cf0d7a962e66e9b9b
tree5f3a5b44b90bdd4b269a8dff19ffa8244f7a545b
parent932ff095dac83d9ded67b8971c38631343368a2f
net/smc: fix byte_order for rx_curs_confirmed

[ Upstream commit ccc8ca9b90acb45a3309f922b2591b07b4e070ec ]

The recent change in the rx_curs_confirmed assignment disregards
byte order, which causes problems on little endian architectures.
This patch fixes it.

Fixes: b8649efad879 ("net/smc: fix sender_free computation") (net-tree)
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/smc/smc_cdc.c
net/smc/smc_cdc.h