OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:49 +0000 (06:41 +0200)
commit65e72723add09f7e260863b1f68f24d62c3cf96a
tree11b775c5ce79a256fd927253c647379f886b7647
parentb5a1aa812a161dce89d296e599a003de17cccefa
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