projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
747824c
)
drm: DRM: fix memset size error
author
Li Zefan
<lizf@cn.fujitsu.com>
Mon, 5 Nov 2007 02:53:09 +0000
(12:53 +1000)
committer
Dave Airlie
<airlied@optimus.(none)>
Tue, 6 Nov 2007 00:12:44 +0000
(10:12 +1000)
The size passing to memset is wrong.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/drm/drm_ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/char/drm/drm_ioctl.c
b/drivers/char/drm/drm_ioctl.c
index d9be14624526e9553279f61f9c788526c6562894..3cbebf868e6832c2e61fa1885da3b970132be038 100644
(file)
--- 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);