Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1e9c90e authored by Dan Carpenter's avatar Dan Carpenter Committed by Dave Airlie
Browse files

drm/omap: tiler: clear buffer properly



We're taking the sizeof() the wrong thing so it doesn't clear the whole
buffer.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarRob Clark <robdclark@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@gmail.com>
parent 9c784855
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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++) {