aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-09-04 16:15:10 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2013-09-04 16:15:10 +0000
commit4eced13a3797a41ca5c122336ce4c90e352629f1 (patch)
treed7dc18f0911c99114b43dd67f497d0728bf6ebbd /target/linux
parent1eb21b87bdd67b13b426fe5d19113dca6daee9b3 (diff)
downloadupstream-4eced13a3797a41ca5c122336ce4c90e352629f1.tar.gz
upstream-4eced13a3797a41ca5c122336ce4c90e352629f1.tar.bz2
upstream-4eced13a3797a41ca5c122336ce4c90e352629f1.zip
kernel: b53: allow access the MIB counters on BCM5365
b53_no_ops has no elements and b53_port_ops has one element, this makes the code access some random memory when trying to access the mib counter functions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37895
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/net/phy/b53/b53_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
index 467f9b2847..25ab412f80 100644
--- a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
+++ b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
@@ -970,7 +970,7 @@ static const struct switch_dev_ops b53_switch_ops_65 = {
.n_attr = ARRAY_SIZE(b53_global_ops_65),
},
.attr_port = {
- .attr = b53_no_ops,
+ .attr = b53_port_ops,
.n_attr = ARRAY_SIZE(b53_port_ops),
},
.attr_vlan = {