summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-04-13 13:54:36 -0500
committerRob Herring <robh@kernel.org>2017-04-13 13:54:36 -0500
commit7979b04bb8d074255083bd2ccb3c906ed936554d (patch)
treef2b825781a9166820d1d0dc9e55f97518992cc64
parent561c25462d1821bae5960adeb7e1c28b40adc0fd (diff)
Fix missing 0 init of alloc_device_t
This fixes a crash of "dumpsys SurfaceFlinger" because the dump() pointer is not NULL. Change-Id: If4c1f71fd532e21bb246c1b815b8b9ca00bb405b Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--gralloc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gralloc.cpp b/gralloc.cpp
index 606ee5f..ad63a49 100644
--- a/gralloc.cpp
+++ b/gralloc.cpp
@@ -271,7 +271,7 @@ static int gbm_mod_open_gpu0(struct gbm_module_t *dmod, hw_device_t **dev)
if (err)
return err;
- alloc = new alloc_device_t;
+ alloc = new alloc_device_t();
if (!alloc)
return -EINVAL;