OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11957be
)
net: dsa: b53: Uninitialized variable in b53_adjust_link()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Sat, 8 Sep 2018 08:39:25 +0000
(11:39 +0300)
committer
David S. Miller
<davem@davemloft.net>
Wed, 12 Sep 2018 06:00:33 +0000
(23:00 -0700)
The "pause" variable is only initialized on BCM5301x.
Fixes:
5e004460f874
("net: dsa: b53: Add helper to set link parameters")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/b53/b53_common.c
b/drivers/net/dsa/b53/b53_common.c
index
ea4256c
..
dbf5b86
100644
(file)
--- a/
drivers/net/dsa/b53/b53_common.c
+++ b/
drivers/net/dsa/b53/b53_common.c
@@
-1025,7
+1025,7
@@
static void b53_adjust_link(struct dsa_switch *ds, int port,
struct b53_device *dev = ds->priv;
struct ethtool_eee *p = &dev->ports[port].eee;
u8 rgmii_ctrl = 0, reg = 0, off;
- int pause;
+ int pause
= 0
;
if (!phy_is_pseudo_fixed_link(phydev))
return;