]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 26 Jul 2017 03:46:49 +0000 (20:46 -0700)
commit18752b47497a7bb97f610e339b0117db304f476d
tree29da2532e9b8b9c966380726cadc06cc1f88837f
parentffc2b98cd6cdf30e44a091d2c5322f0b47ea3c4c
qed: Pass src/dst sizes when interacting with MFW

Orabug: 2593305326439680

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>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_mcp.c
drivers/net/ethernet/qlogic/qed/qed_mcp.h