drm: DRM: fix memset size error

The size passing to memset is wrong.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Li Zefan 2007-11-05 12:53:09 +10:00 committed by Dave Airlie
parent 747824c67b
commit 246a3d186a

View 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);