Skip to content

Commit

Permalink
drm: DRM: fix memset size error
Browse files Browse the repository at this point in the history
The size passing to memset is wrong.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Li Zefan authored and Dave Airlie committed Nov 6, 2007
1 parent 747824c commit 246a3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/drm/drm_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 246a3d1

Please sign in to comment.