Messages in this thread Patch in this message | | | Date | Thu, 27 Apr 2006 17:21:14 -0700 | From | Greg KH <> | Subject | [patch 16/24] Altix snsc: duplicate kobject fix |
| |
-stable review patch. If anyone has any objections, please let us know.
------------------
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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--- drivers/char/snsc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
--- linux-2.6.16.11.orig/drivers/char/snsc.c +++ linux-2.6.16.11/drivers/char/snsc.c @@ -391,7 +391,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 = kmalloc(sizeof (struct sysctl_data_s), -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |