]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/omap: tiler: clear buffer properly
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 Aug 2013 12:42:50 +0000 (15:42 +0300)
committerDave Airlie <airlied@gmail.com>
Thu, 29 Aug 2013 23:14:41 +0000 (09:14 +1000)
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>
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c

index 9b794c933c811dde3289f760be63bf1e026cd71c..acf667859cb6231040914270b5bafbc923004ea8 100644 (file)
@@ -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++) {