Hans de Goede wrote:
Hi All,
Untested, but this should fix the dmraid errors and the hang we've been
seeing on nvidia
Regards,
Hans
diff -up pyblock-0.34/dmraid.c~ pyblock-0.34/dmraid.c
--- pyblock-0.34/dmraid.c~ 2009-02-02 16:28:48.000000000 +0100
+++ pyblock-0.34/dmraid.c 2009-02-16 22:52:56.000000000 +0100
@@ -1269,18 +1269,11 @@ pydmraid_ctx_discover_raidsets(PyObject
}
Py_DECREF(name);
- if (!group_set(ctx->lc, &rd->name)) {
- /*
- * This means that whatever was in name did not
- * play well with current context. lest try
- * a NULL list.
- */
- char *temp[] = {NULL};
- if (!group_set(ctx->lc, temp)){
- pyblock_PyErr_Format(GroupingError, "%s", rd->name);
- Py_DECREF(dict);
- return NULL;
- }
+ char *argv[] = { rd->name, NULL };
+ if (!group_set(ctx->lc, argv)) {
+ pyblock_PyErr_Format(GroupingError, "%s", rd->name);
+ Py_DECREF(dict);
+ return NULL;
}
Py_DECREF(dict);
}
Code looks ok to me.
--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list