OSDN Git Service
(root)
/
android-x86
/
kernel.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
d9be146
..
3cbebf8
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);