diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2007-11-05 12:53:09 +1000 |
---|---|---|
committer | Dave Airlie <airlied@optimus.(none)> | 2007-11-06 10:12:44 +1000 |
commit | 246a3d186a10266c9ee362e8d37c3bd851246b84 (patch) | |
tree | 6f0b7c18b1e496a2184ef67ddd867dfed6da3cc8 /drivers/char/drm/drm_ioctl.c | |
parent | 747824c67b31b5d6e9379fae8af2ef46cf715f62 (diff) | |
download | op-kernel-dev-246a3d186a10266c9ee362e8d37c3bd851246b84.zip op-kernel-dev-246a3d186a10266c9ee362e8d37c3bd851246b84.tar.gz |
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/drm/drm_ioctl.c')
-rw-r--r-- | drivers/char/drm/drm_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/drm_ioctl.c b/drivers/char/drm/drm_ioctl.c index d9be146..3cbebf8 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); |