external/gbm_gralloc
修订版 | 5fbb4a87c53d8f3ef63c2f6cf7d9f91b188b6546 (tree) |
---|---|
时间 | 2017-07-13 00:27:35 |
作者 | Rob Herring <robh@kern...> |
Commiter | Rob Herring |
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>
@@ -132,6 +132,7 @@ static struct gralloc_gbm_bo_t *gbm_import(struct gbm_device *gbm, | ||
132 | 132 | return NULL; |
133 | 133 | } |
134 | 134 | |
135 | + memset(&data, 0, sizeof(data)); | |
135 | 136 | data.width = handle->width; |
136 | 137 | data.height = handle->height; |
137 | 138 | data.format = format; |