Skip to content

Commit

Permalink
qed: do not use unitialized variable
Browse files Browse the repository at this point in the history
Do not write random bytes from the kernel stack when
calling qed_wr.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
xypron authored and davem330 committed Aug 1, 2016
1 parent 8c57a3a commit 41fc1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/qlogic/qed/qed_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ static int qed_hw_init_pf(struct qed_hwfn *p_hwfn,

if (hw_mode & (1 << MODE_MF_SI)) {
u8 pf_id = 0;
u32 val;
u32 val = 0;

if (!qed_hw_init_first_eth(p_hwfn, p_ptt, &pf_id)) {
if (p_hwfn->rel_pf_id == pf_id) {
Expand Down

0 comments on commit 41fc1e0

Please sign in to comment.