Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=60af880339aae440293a0c8e93178fdcb41f8a29
Commit:     60af880339aae440293a0c8e93178fdcb41f8a29
Parent:     8d431dbef4e63d54f1965c3ed6ca5f91ee4512de
Author:     Eric Dumazet <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 17 16:19:51 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Dec 17 19:28:15 2007 -0800

    parport: "dev->timeslice" is an unsigned long, not an int
    
    While auditing proc_doulongvec_ms_jiffies_minmax() usage in kernel, I found
    a bug in drivers/parport/procfs.c, incorrectly using sizeof(int) instead of
    sizeof(unsigned long)
    
    Only 64bit arches are affected by this old bug.
    
    Signed-off-by: Eric Dumazet <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/parport/procfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/parport/procfs.c b/drivers/parport/procfs.c
index ed82e41..d950fc3 100644
--- a/drivers/parport/procfs.c
+++ b/drivers/parport/procfs.c
@@ -384,7 +384,7 @@ parport_device_sysctl_template = {
                {
                        .procname       = "timeslice",
                        .data           = NULL,
-                       .maxlen         = sizeof(int),
+                       .maxlen         = sizeof(unsigned long),
                        .mode           = 0644,
                        .proc_handler   = &proc_doulongvec_ms_jiffies_minmax,
                        .extra1         = (void*) &parport_min_timeslice_value,
-
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