OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16772a4
)
staging: drm/omap: allocation fail check
author
Rob Clark
<rob@ti.com>
Sat, 10 Dec 2011 05:26:06 +0000
(23:26 -0600)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 13 Dec 2011 00:37:51 +0000
(16:37 -0800)
Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/omapdrm/omap_gem.c
patch
|
blob
|
history
diff --git
a/drivers/staging/omapdrm/omap_gem.c
b/drivers/staging/omapdrm/omap_gem.c
index
1054da3
..
a451c57
100644
(file)
--- a/
drivers/staging/omapdrm/omap_gem.c
+++ b/
drivers/staging/omapdrm/omap_gem.c
@@
-1094,6
+1094,10
@@
void omap_gem_init(struct drm_device *dev)
}
usergart = kzalloc(3 * sizeof(*usergart), GFP_KERNEL);
+ if (!usergart) {
+ dev_warn(dev->dev, "could not allocate usergart\n");
+ return;
+ }
/* reserve 4k aligned/wide regions for userspace mappings: */
for (i = 0; i < ARRAY_SIZE(fmts); i++) {