projects
/
platform
/
core
/
uifw
/
libgbm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42d8ac5
)
add alloc fail checking
58/141558/1
author
Junkyeong Kim
<jk0430.kim@samsung.com>
Tue, 1 Aug 2017 04:45:28 +0000
(13:45 +0900)
committer
Junkyeong Kim
<jk0430.kim@samsung.com>
Tue, 1 Aug 2017 04:45:31 +0000
(13:45 +0900)
Change-Id: I8d901efb6ae2cb5c75b882ed2f56b529e020db1a
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
backends/tbm/gbm_tbm.c
patch
|
blob
|
history
diff --git
a/backends/tbm/gbm_tbm.c
b/backends/tbm/gbm_tbm.c
index
92527c3
..
b000f34
100644
(file)
--- a/
backends/tbm/gbm_tbm.c
+++ b/
backends/tbm/gbm_tbm.c
@@
-366,6
+366,8
@@
__tbm_device_create(int fd)
struct gbm_tbm_device *dri;
dri = calloc(1, sizeof *dri);
+ if (dri == NULL)
+ return NULL;
dri->bufmgr = tbm_bufmgr_init(fd);
if (dri->bufmgr == NULL)