Displaying 2 results from an estimated 2 matches for "nouveau_parent_destroy".
2012 Oct 07
1
[PATCH] drm/nouveau: comment out unused _nouveau_parent_ctor
...@ -101,6 +101,7 @@ nouveau_parent_create_(struct nouveau_object *parent,
return 0;
}
+#if 0
int
_nouveau_parent_ctor(struct nouveau_object *parent,
struct nouveau_object *engine,
@@ -117,6 +118,7 @@ _nouveau_parent_ctor(struct nouveau_object *parent,
return 0;
}
+#endif
void
nouveau_parent_destroy(struct nouveau_parent *parent)
diff --git a/drivers/gpu/drm/nouveau/core/include/core/parent.h b/drivers/gpu/drm/nouveau/core/include/core/parent.h
index d3aa251..58bf6b5 100644
--- a/drivers/gpu/drm/nouveau/core/include/core/parent.h
+++ b/drivers/gpu/drm/nouveau/core/include/core/parent.h
@@ -50,...
2012 Oct 07
2
[PATCH] drm/nouveau: fix error handling in core/core object creation functions
...drivers/gpu/drm/nouveau/core/core/parent.c
+++ b/drivers/gpu/drm/nouveau/core/core/parent.c
@@ -87,8 +87,10 @@ nouveau_parent_create_(struct nouveau_object *parent,
if (sclass && sclass->ofuncs) {
nclass = kzalloc(sizeof(*nclass), GFP_KERNEL);
- if (!nclass)
+ if (!nclass) {
+ nouveau_parent_destroy(object);
return -ENOMEM;
+ }
nclass->sclass = object->sclass;
object->sclass = nclass;
--
1.7.12