[openib-general] [PATCH] user_mad: set kobject name properly

Michael S. Tsirkin mst at mellanox.co.il
Sun Nov 6 05:27:02 PST 2005


kobject name for issm device wasnt being set properly.

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

Index: linux-kernel/infiniband/core/user_mad.c
===================================================================
--- linux-kernel/infiniband/core/user_mad.c	(revision 3956)
+++ linux-kernel/infiniband/core/user_mad.c	(working copy)
@@ -801,7 +801,7 @@ static int ib_umad_init_port(struct ib_d
 		goto err_class;
 	port->sm_dev->owner = THIS_MODULE;
 	port->sm_dev->ops   = &umad_sm_fops;
-	kobject_set_name(&port->dev->kobj, "issm%d", port->dev_num);
+	kobject_set_name(&port->sm_dev->kobj, "issm%d", port->dev_num);
 	if (cdev_add(port->sm_dev, base_dev + port->dev_num + IB_UMAD_MAX_PORTS, 1))
 		goto err_sm_cdev;
 

-- 
MST



More information about the general mailing list