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=3126c14e8138c7dd32a027932af76234a9c4d3c7;hpb=57ed609d4b64139b4d2cf5f3b4880a573a7905d2 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); }