search for: 1a48e58

Displaying 2 results from an estimated 2 matches for "1a48e58".

2012 Oct 07
2
[PATCH] drm/nouveau: fix error handling in core/core object creation functions
...ALLOC) { @@ -130,6 +130,9 @@ nouveau_gpuobj_create_(struct nouveau_object *parent, } return ret; +err: + nouveau_gpuobj_destroy(gpuobj); + return ret; } struct nouveau_gpuobj_class { diff --git a/drivers/gpu/drm/nouveau/core/core/parent.c b/drivers/gpu/drm/nouveau/core/core/parent.c index 1a48e58..d2ea7c2 100644 --- a/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)...
2012 Oct 07
1
[PATCH] drm/nouveau: remove >1 sclass support from nouveau_parent_create_
..._client_oclass, - NV_CLIENT_CLASS, nouveau_device_sclass, + NV_CLIENT_CLASS, &nouveau_device_sclass, 0, length, pobject); client = *pobject; if (ret) diff --git a/drivers/gpu/drm/nouveau/core/core/parent.c b/drivers/gpu/drm/nouveau/core/core/parent.c index 0e7733c..1a48e58 100644 --- a/drivers/gpu/drm/nouveau/core/core/parent.c +++ b/drivers/gpu/drm/nouveau/core/core/parent.c @@ -85,7 +85,7 @@ nouveau_parent_create_(struct nouveau_object *parent, if (ret) return ret; - while (sclass && sclass->ofuncs) { + if (sclass && sclass->ofuncs) {...