diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-07-19 22:55:26 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-07-19 22:58:39 +0200 |
commit | 7b9f453690f9bca7b9458de12218f2ba0100b09e (patch) | |
tree | c5a67c62520b8873c4aa5b5169cb356a59ac2c17 | |
parent | 4a0728a4d30b374d19ef680ea93427a00ac3d2ce (diff) |
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
-rw-r--r-- | src/glamo-drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glamo-drm.c b/src/glamo-drm.c index 01e8510..3dd805e 100644 --- a/src/glamo-drm.c +++ b/src/glamo-drm.c @@ -101,8 +101,8 @@ void GlamoDRMAddCommandBO(GlamoPtr pGlamo, uint16_t reg, struct glamo_bo *bo) void GlamoDRMInit(GlamoPtr pGlamo) { - pGlamo->cmdq_objs = malloc(GLAMO_CMDQ_MAX_COUNT); - pGlamo->cmdq_obj_pos = malloc(GLAMO_CMDQ_MAX_COUNT); + pGlamo->cmdq_objs = malloc(GLAMO_CMDQ_MAX_COUNT*sizeof(uint32_t)); + pGlamo->cmdq_obj_pos = malloc(GLAMO_CMDQ_MAX_COUNT*sizeof(unsigned int)); pGlamo->cmdq_obj_used = 0; pGlamo->cmdq_drm_used = 0; /* we're using 2bytes per entry (uint16_t) that's why we need to allocate |