Commit d00164e4 authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[BRIDGE]: Fix bridge sysfs improprely initialized kobject.

The bridge sysfs interface introduced around 2.6.7-rc1 created a bad
entry in /sys because it didn't initialise the name member of the kobject.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 1967aa32
......@@ -305,9 +305,7 @@ static struct bin_attribute bridge_forward = {
* This is a dummy kset so bridge objects don't cause
* hotplug events
*/
struct subsystem bridge_subsys = {
.kset = { .hotplug_ops = NULL },
};
decl_subsys_name(bridge, net_bridge, NULL, NULL);
void br_sysfs_init(void)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment