]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 04:59:48 +0000 (20:59 -0800)
commit97d21d6c036deb60b3fca42f00f8f4072a5b8be8
treedc3bbcfef513241265ccaa1f39cdc6b79ff7e57b
parent167c7856d4f4ceadc3534aa0db56b3b9abbf8b24
qed: Fix stack corruption on probe

Orabug: 25477939

Commit fe56b9e6a8d95 ("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: fe56b9e6a8d95 ("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>
(cherry picked from commit 67a99b7061c07b190ac6c39f136afedbb7aa86e9)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_mcp.c