mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][2.6] fix bridge sysfs improperly initialised knobject
@ 2004-06-16 23:48 Zwane Mwaikambo
  2004-06-17 20:46 ` Stephen Hemminger
  2004-06-17 21:45 ` Stephen Hemminger
  0 siblings, 2 replies; 6+ messages in thread
From: Zwane Mwaikambo @ 2004-06-16 23:48 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Andrew Morton, Stephen Hemminger

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.

zwane@montezuma /sys {0:0} ls -l
total 0
?---------   ? ?    ?    ?            ?
drwxr-xr-x  17 root root 0 Jun 15 15:47 block
drwxr-xr-x   7 root root 0 Jun 15 15:47 bus
drwxr-xr-x  16 root root 0 Jun 15 15:47 class
drwxr-xr-x   5 root root 0 Jun 15 15:47 devices
drwxr-xr-x   3 root root 0 Jun 15 15:47 firmware
drwxr-xr-x   8 root root 0 Jun 15 19:55 module

Index: linux-2.6.7-rc3-mm2/net/bridge/br_sysfs_br.c
===================================================================
RCS file: /home/cvsroot/linux-2.6.7-rc3-mm2/net/bridge/br_sysfs_br.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 br_sysfs_br.c
--- linux-2.6.7-rc3-mm2/net/bridge/br_sysfs_br.c	14 Jun 2004 12:49:12 -0000	1.1.1.1
+++ linux-2.6.7-rc3-mm2/net/bridge/br_sysfs_br.c	16 Jun 2004 16:45:20 -0000
@@ -305,9 +305,7 @@ static struct bin_attribute bridge_forwa
  * 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)
 {

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-06-18 20:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-16 23:48 [PATCH][2.6] fix bridge sysfs improperly initialised knobject Zwane Mwaikambo
2004-06-17 20:46 ` Stephen Hemminger
2004-06-17 20:51   ` David S. Miller
2004-06-17 20:58   ` Greg KH
2004-06-17 21:45 ` Stephen Hemminger
2004-06-18 20:19   ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome