projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfd376b
)
drm/nouveau: don't return freed object from nouveau_handle_create
author
Marcin Slusarz
<marcin.slusarz@gmail.com>
Mon, 10 Dec 2012 20:57:20 +0000
(21:57 +0100)
committer
Ben Skeggs
<bskeggs@redhat.com>
Sun, 13 Jan 2013 08:07:41 +0000
(18:07 +1000)
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/core/handle.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/core/core/handle.c
b/drivers/gpu/drm/nouveau/core/core/handle.c
index
b8d2cbf
..
264c2b3
100644
(file)
--- a/
drivers/gpu/drm/nouveau/core/core/handle.c
+++ b/
drivers/gpu/drm/nouveau/core/core/handle.c
@@
-109,7
+109,7
@@
nouveau_handle_create(struct nouveau_object *parent, u32 _parent, u32 _handle,
while (!nv_iclass(namedb, NV_NAMEDB_CLASS))
namedb = namedb->parent;
- handle =
*phandle =
kzalloc(sizeof(*handle), GFP_KERNEL);
+ handle = kzalloc(sizeof(*handle), GFP_KERNEL);
if (!handle)
return -ENOMEM;
@@
-146,6
+146,9
@@
nouveau_handle_create(struct nouveau_object *parent, u32 _parent, u32 _handle,
}
hprintk(handle, TRACE, "created\n");
+
+ *phandle = handle;
+
return 0;
}