Skip to content

Commit

Permalink
drm/omap: tiler: clear buffer properly
Browse files Browse the repository at this point in the history
We're taking the sizeof() the wrong thing so it doesn't clear the whole
buffer.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
  • Loading branch information
Dan Carpenter authored and airlied committed Aug 29, 2013
1 parent 9c78485 commit e1e9c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ int tiler_map_show(struct seq_file *s, void *arg)
goto error;

for (lut_idx = 0; lut_idx < omap_dmm->num_lut; lut_idx++) {
memset(map, 0, sizeof(h_adj * sizeof(*map)));
memset(map, 0, h_adj * sizeof(*map));
memset(global_map, ' ', (w_adj + 1) * h_adj);

for (i = 0; i < omap_dmm->container_height; i++) {
Expand Down

0 comments on commit e1e9c90

Please sign in to comment.