You are correct. I took out the other put_device() in the -bk tree in
class_device_del() but forgot to remove this one. Good catch.
Pat, here's a patch to fix this up, against the latest -bk tree.
thanks,
greg k-h
# Driver core: fix unbounded get_device() in class_device_add()
#
# This was found by Alan Stern.
diff -Nru a/drivers/base/class.c b/drivers/base/class.c
--- a/drivers/base/class.c Wed Jun 11 14:47:20 2003
+++ b/drivers/base/class.c Wed Jun 11 14:47:20 2003
@@ -264,8 +264,6 @@
return -EINVAL;
parent = class_get(class_dev->class);
- if (class_dev->dev)
- get_device(class_dev->dev);
pr_debug("CLASS: registering class device: ID = '%s'\n",
class_dev->class_id);
-
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/