summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2007-11-05 03:53:09 +0100
committerDave Airlie <airlied@optimus.(none)>2007-11-06 01:12:44 +0100
commit246a3d186a10266c9ee362e8d37c3bd851246b84 (patch)
tree6f0b7c18b1e496a2184ef67ddd867dfed6da3cc8 /drivers/char
parentdrm: remove remnants of DRM_COPY_FROM/TO_USER_IOCTL (diff)
downloadlinux-246a3d186a10266c9ee362e8d37c3bd851246b84.tar.xz
linux-246a3d186a10266c9ee362e8d37c3bd851246b84.zip
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/drm/drm_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/drm_ioctl.c b/drivers/char/drm/drm_ioctl.c
index d9be14624526..3cbebf868e68 100644
--- a/drivers/char/drm/drm_ioctl.c
+++ b/drivers/char/drm/drm_ioctl.c
@@ -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);