diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2007-11-05 18:48:27 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-11-05 18:48:27 +1000 |
commit | 78fe88baee9271ceaf6187019633e4cccfebb776 (patch) | |
tree | eca3f7a6a93d6e61982fc8a8b1f760a2e4fdeaa7 /linux-core | |
parent | 921bd07c242355d187018f36d74bd95fd0d02b17 (diff) |
drm: fix memset size error
The size passing to memset is wrong.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_ioctl.c b/linux-core/drm_ioctl.c index 9d52fd8a..395f7b4e 100644 --- a/linux-core/drm_ioctl.c +++ b/linux-core/drm_ioctl.c @@ -264,7 +264,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); |