]> err.no Git - linux-2.6/commitdiff
drm: DRM: fix memset size error
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 5 Nov 2007 02:53:09 +0000 (12:53 +1000)
committerDave Airlie <airlied@optimus.(none)>
Tue, 6 Nov 2007 00:12:44 +0000 (10:12 +1000)
The size passing to memset is wrong.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/drm/drm_ioctl.c

index d9be14624526e9553279f61f9c788526c6562894..3cbebf868e6832c2e61fa1885da3b970132be038 100644 (file)
@@ -272,7 +272,7 @@ int drm_getstats(struct drm_device *dev, void *data,
        struct drm_stats *stats = data;
        int i;
 
-       memset(stats, 0, sizeof(stats));
+       memset(stats, 0, sizeof(*stats));
 
        mutex_lock(&dev->struct_mutex);