]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Fix stack corruption on probe
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Mon, 19 Sep 2016 14:47:41 +0000 (17:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Sep 2016 08:57:16 +0000 (04:57 -0400)
commit0b4aa300d2fca5fef3124cf2eda675f1c4ad21bf
tree94cabd2638bcde1004dec702d713f1f4e1c6e41d
parentc1dd233354222daf775ef5625132d533c875f76c
qed: Fix stack corruption on probe

Commit 8608a971f3fda ("qed: Add module with basic common support")
has introduced a stack corruption during probe, where filling a
local struct with data to be sent to management firmware is incorrectly
filled; The data is written outside of the struct and corrupts
the stack.

Changes from v1:
----------------
 - Correct the value written [Caught by David Laight]

Fixes: 8608a971f3fda ("qed: Add module with basic common support")
Signed-off-by: Yuval Mintz <Yuval.Mintz@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_mcp.c