• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

external/gbm_gralloc


Commit MetaInfo

修订版5fbb4a87c53d8f3ef63c2f6cf7d9f91b188b6546 (tree)
时间2017-07-13 00:27:35
作者Rob Herring <robh@kern...>
CommiterRob Herring

Log Message

gbm_import: fix missing gbm_import_fd_modifier_data initialization

With gbm_import_fd_modifier_data, some fields are not getting
initialized and in particular offset[0] is not which causes import
failures. Add memset to ensure all fields are initialized.

Reviewed-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Rob Herring <robh@kernel.org>

更改概述

差异

--- a/gralloc_gbm.cpp
+++ b/gralloc_gbm.cpp
@@ -132,6 +132,7 @@ static struct gralloc_gbm_bo_t *gbm_import(struct gbm_device *gbm,
132132 return NULL;
133133 }
134134
135+ memset(&data, 0, sizeof(data));
135136 data.width = handle->width;
136137 data.height = handle->height;
137138 data.format = format;