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:
parent
747824c67b
commit
246a3d186a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue