* + parport-dev-timeslice-is-an-unsigned-long-not-an-int.patch added to -mm tree
@ 2007-12-11 23:30 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2007-12-11 23:30 UTC (permalink / raw)
To: mm-commits; +Cc: dada1
The patch titled
parport: "dev->timeslice" is an unsigned long, not an int
has been added to the -mm tree. Its filename is
parport-dev-timeslice-is-an-unsigned-long-not-an-int.patch
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
------------------------------------------------------
Subject: parport: "dev->timeslice" is an unsigned long, not an int
From: Eric Dumazet <dada1@cosmosbay.com>
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 <dada1@cosmosbay.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/parport/procfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/parport/procfs.c~parport-dev-timeslice-is-an-unsigned-long-not-an-int drivers/parport/procfs.c
--- a/drivers/parport/procfs.c~parport-dev-timeslice-is-an-unsigned-long-not-an-int
+++ a/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,
_
Patches currently in -mm which might be from dada1@cosmosbay.com are
parport-dev-timeslice-is-an-unsigned-long-not-an-int.patch
git-net.patch
percpu-__percpu_alloc_mask-can-dynamically-size-percpu_data.patch
get-rid-of-nr_open-and-introduce-a-sysctl_nr_open.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-11 23:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 23:30 + parport-dev-timeslice-is-an-unsigned-long-not-an-int.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.