Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=246a3d186a10266c9ee362e8d37c3bd851246b84
Commit:     246a3d186a10266c9ee362e8d37c3bd851246b84
Parent:     747824c67b31b5d6e9379fae8af2ef46cf715f62
Author:     Li Zefan <[EMAIL PROTECTED]>
AuthorDate: Mon Nov 5 12:53:09 2007 +1000
Committer:  Dave Airlie <[EMAIL PROTECTED](none)>
CommitDate: Tue Nov 6 10:12:44 2007 +1000

    drm: DRM: fix memset size error
    
    The size passing to memset is wrong.
    
    Signed-off-by: Li Zefan <[EMAIL PROTECTED]>
    Signed-off-by: Dave Airlie <[EMAIL PROTECTED]>
---
 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);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to