X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=net%2Fbridge%2Fbr_sysfs_if.c;h=d1f6604c3ca5f24e2f6581bf47da28837b8767d8;hp=6229b62749e83a9dbf8469f7b427f46133b868db;hb=72ad0a39cb3603787cca30e395f8cdb7dd911d2b;hpb=6f02bfc404decf5b5046f1413ef941e1870912f7 diff --git a/net/bridge/br_sysfs_if.c b/net/bridge/br_sysfs_if.c index 6229b62749e8..d1f6604c3ca5 100644 --- a/net/bridge/br_sysfs_if.c +++ b/net/bridge/br_sysfs_if.c @@ -196,6 +196,9 @@ static ssize_t brport_show(struct kobject * kobj, struct brport_attribute * brport_attr = to_brport_attr(attr); struct net_bridge_port * p = to_brport(kobj); + if (!brport_attr->show) + return -EINVAL; + return brport_attr->show(p, buf); }