提交 246a3d18 编写于 作者: L Li Zefan 提交者: Dave Airlie

drm: DRM: fix memset size error

The size passing to memset is wrong.
Signed-off-by: NLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 747824c6
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册