ibmvnic: Fix endian error when requesting device capabilities
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Wed, 24 May 2017 01:53:27 +0000 (21:53 -0400)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:57:13 +0000 (02:57 +0000)
commitf0e77b5da0efbc80dbca46b129c2ae09d16765f6
treee8c6bd49ff496b866aa9e98bab3dcf7c631e9c52
parentca231733fe0b47ab42c7b81cd256a8009394e337
ibmvnic: Fix endian error when requesting device capabilities

[ Upstream commit 28f4d16570dcf440e54a4d72666d5be452f27d0e ]

When a vNIC client driver requests a faulty device setting, the
server returns an acceptable value for the client to request.
This 64 bit value was incorrectly being swapped as a 32 bit value,
resulting in loss of data. This patch corrects that by using
the 64 bit swap function.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ibm/ibmvnic.c