Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1452812
| From | Heinrich Schuchardt <xypron.glpk@gmx.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/1] qed: do not use unitialized variable |
| Date | 2016-07-31 13:30 +0200 |
| Message-ID | <s0X6p-7T8-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Do not write random bytes from the kernel stack when
calling qed_wr.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
drivers/net/ethernet/qlogic/qed/qed_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/qlogic/qed/qed_dev.c b/drivers/net/ethernet/qlogic/qed/qed_dev.c
index b26fe26..151cbf9 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_dev.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_dev.c
@@ -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) {
--
2.8.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/1] qed: do not use unitialized variable Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-07-31 13:30 +0200 RE: [PATCH 1/1] qed: do not use unitialized variable Yuval Mintz <Yuval.Mintz@qlogic.com> - 2016-07-31 16:20 +0200 Re: [PATCH 1/1] qed: do not use unitialized variable David Miller <davem@davemloft.net> - 2016-08-01 22:50 +0200
csiph-web