X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fbridge%2Fbr_sysfs_if.c;h=d1f6604c3ca5f24e2f6581bf47da28837b8767d8;hb=a5a3182e50b5be88efd01050ba6f35e2d0aaee03;hp=6229b62749e83a9dbf8469f7b427f46133b868db;hpb=8b29336fe01dab3541ebb283daddf9d0168c3f05;p=pandora-kernel.git 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); }