diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-08-22 08:42:50 -0400 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2013-08-29 19:14:41 -0400 |
commit | e1e9c90eefbed92cb2142072918d9c5d1051256f (patch) | |
tree | c6ab7c9c5810cbd73a4b5fa86d81012b99dd9a0d /drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | |
parent | 9c784855067a8d10cef6088b14a58083e3918fdc (diff) |
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: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_dmm_tiler.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c index 9b794c933c81..acf667859cb6 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | |||
@@ -871,7 +871,7 @@ int tiler_map_show(struct seq_file *s, void *arg) | |||
871 | goto error; | 871 | goto error; |
872 | 872 | ||
873 | for (lut_idx = 0; lut_idx < omap_dmm->num_lut; lut_idx++) { | 873 | for (lut_idx = 0; lut_idx < omap_dmm->num_lut; lut_idx++) { |
874 | memset(map, 0, sizeof(h_adj * sizeof(*map))); | 874 | memset(map, 0, h_adj * sizeof(*map)); |
875 | memset(global_map, ' ', (w_adj + 1) * h_adj); | 875 | memset(global_map, ' ', (w_adj + 1) * h_adj); |
876 | 876 | ||
877 | for (i = 0; i < omap_dmm->container_height; i++) { | 877 | for (i = 0; i < omap_dmm->container_height; i++) { |