kernel: b53: allow access the MIB counters on BCM5365
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 4 Sep 2013 16:15:10 +0000 (16:15 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 4 Sep 2013 16:15:10 +0000 (16:15 +0000)
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

target/linux/generic/files/drivers/net/phy/b53/b53_common.c

index 467f9b28479e474eaf6edfbe37a906a21266d9d9..25ab412f800ebaf411736b13bf0c9b5f50e04280 100644 (file)
@@ -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 = {