Skip to content

Commit

Permalink
[PATCH] Altix snsc: duplicate kobject fix
Browse files Browse the repository at this point in the history
from: Greg Howard <ghoward@sgi.com>

Fix Altix system controller (snsc) device names to include the slot number
of the blade whose associated system controller is the target of the device
interface.  Including the slot number avoids a problem we're currently
having where slots within the same enclosure are attempting to create
multiple kobjects with identical names.

Signed-off-by: Greg Howard <ghoward@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
akpm@osdl.org authored and Linus Torvalds committed Apr 22, 2006
1 parent 5b20192 commit 8c4335a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/char/snsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ scdrv_init(void)
format_module_id(devnamep, geo_module(geoid),
MODULE_FORMAT_BRIEF);
devnamep = devname + strlen(devname);
sprintf(devnamep, "#%d", geo_slab(geoid));
sprintf(devnamep, "^%d#%d", geo_slot(geoid),
geo_slab(geoid));

/* allocate sysctl device data */
scd = kzalloc(sizeof (struct sysctl_data_s),
Expand Down

0 comments on commit 8c4335a

Please sign in to comment.