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
This commit is contained in:
parent
1eb21b87bd
commit
4eced13a37
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue