ibmvnic: Fix incorrectly defined ibmvnic_request_map_rsp structure
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Wed, 21 Jun 2017 19:53:00 +0000 (14:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jun 2017 15:31:34 +0000 (11:31 -0400)
This reserved area should be eight bytes in length instead of four.
As a result, the return codes in the REQUEST_MAP_RSP descriptors
were not being properly handled.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.h

index 7e2300e64a47e0044872f79af4c9e889147cdb48..2d525c761b75c56de92a0d1926ac5397ba25af7c 100644 (file)
@@ -595,7 +595,7 @@ struct ibmvnic_request_map_rsp {
        u8 cmd;
        u8 reserved1;
        u8 map_id;
-       u8 reserved2[4];
+       u8 reserved2[8];
        struct ibmvnic_rc rc;
 } __packed __aligned(8);