diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2013-09-04 16:15:10 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2013-09-04 16:15:10 +0000 |
commit | 4fb01f7d9190b50585a5def654fd7803d394faeb (patch) | |
tree | e989aae4966a1ce7194f127703c739ae17d8a49a /target/linux/generic/files/drivers/net/phy/b53/b53_common.c | |
parent | 4b85b2d0bccf21c32f516b7420cabd11f8e90ab8 (diff) | |
download | upstream-4fb01f7d9190b50585a5def654fd7803d394faeb.tar.gz upstream-4fb01f7d9190b50585a5def654fd7803d394faeb.tar.bz2 upstream-4fb01f7d9190b50585a5def654fd7803d394faeb.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37895 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/b53/b53_common.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/b53/b53_common.c | 2 |
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 = { |