Commit 246a3d18 authored by Li Zefan's avatar Li Zefan Committed by Dave Airlie

drm: DRM: fix memset size error

The size passing to memset is wrong.
Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 747824c6
...@@ -272,7 +272,7 @@ int drm_getstats(struct drm_device *dev, void *data, ...@@ -272,7 +272,7 @@ int drm_getstats(struct drm_device *dev, void *data,
struct drm_stats *stats = data; struct drm_stats *stats = data;
int i; int i;
memset(stats, 0, sizeof(stats)); memset(stats, 0, sizeof(*stats));
mutex_lock(&dev->struct_mutex); mutex_lock(&dev->struct_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment