]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Pass src/dst sizes when interacting with MFW
authorTomer Tayar <Tomer.Tayar@cavium.com>
Thu, 23 Mar 2017 13:50:16 +0000 (15:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Mar 2017 18:53:29 +0000 (11:53 -0700)
commitd044e060ae2a63910f6a657734738ab454b00f17
treea72f513e0ae4556203f86a3c9200fd0a8797904e
parent753b0803c708c433d9dd609dba6a616d6182eaad
qed: Pass src/dst sizes when interacting with MFW

The driver interaction with management firmware involves a union
of all the data-members relating to the commands the driver prepares.

Current interface assumes the caller always passes such a union -
but thats cumbersome as well as risky [chancing a stack corruption
in case caller accidentally passes a smaller member instead of union].

Change implementation so that caller could pass a pointer to any
of the members instead of the union.

Signed-off-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_mcp.c
drivers/net/ethernet/qlogic/qed/qed_mcp.h