diff for duplicates of <20100909025619.GA5049@gvim.org> diff --git a/a/1.txt b/N1/1.txt index 8807a8d..d487576 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -43,7 +43,7 @@ remote....) This bit doesn't apply post 2.6.35. Signed-off-by: mark gross <markgross@thegnar.org) -From 64753f68e2baaef21783192566469abc54aca90d Mon Sep 17 00:00:00 2001 +>From 64753f68e2baaef21783192566469abc54aca90d Mon Sep 17 00:00:00 2001 From: mgross <mgross@mgross-laptop.(none)> Date: Wed, 8 Sep 2010 19:52:39 -0700 Subject: [PATCH] make it harder to misuse the pm_qos user mode api. @@ -57,7 +57,7 @@ index b7e4c36..645e541 100644 --- a/kernel/pm_qos_params.c +++ b/kernel/pm_qos_params.c @@ -389,10 +389,12 @@ static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf, - } else if (count = 11) { /* len('0x12345678/0') */ + } else if (count == 11) { /* len('0x12345678/0') */ if (copy_from_user(ascii_value, buf, 11)) return -EFAULT; + if (strlen(ascii_value) != 10) diff --git a/a/content_digest b/N1/content_digest index ba82a25..97150fa 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -4,7 +4,7 @@ "ref\0201009090014.00158.rjw@sisk.pl\0" "From\0mark gross <markgross@thegnar.org>\0" "Subject\0Re: [patch] pm_qos_params: cleanup: terminate a string\0" - "Date\0Thu, 09 Sep 2010 02:56:19 +0000\0" + "Date\0Wed, 8 Sep 2010 19:56:19 -0700\0" "To\0Rafael J. Wysocki <rjw@sisk.pl>\0" "Cc\0markgross@thegnar.org" Dan Carpenter <error27@gmail.com> @@ -60,7 +60,7 @@ "Signed-off-by: mark gross <markgross@thegnar.org)\n" "\n" "\n" - "From 64753f68e2baaef21783192566469abc54aca90d Mon Sep 17 00:00:00 2001\n" + ">From 64753f68e2baaef21783192566469abc54aca90d Mon Sep 17 00:00:00 2001\n" "From: mgross <mgross@mgross-laptop.(none)>\n" "Date: Wed, 8 Sep 2010 19:52:39 -0700\n" "Subject: [PATCH] make it harder to misuse the pm_qos user mode api.\n" @@ -74,7 +74,7 @@ "--- a/kernel/pm_qos_params.c\n" "+++ b/kernel/pm_qos_params.c\n" "@@ -389,10 +389,12 @@ static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf,\n" - " \t} else if (count = 11) { /* len('0x12345678/0') */\n" + " \t} else if (count == 11) { /* len('0x12345678/0') */\n" " \t\tif (copy_from_user(ascii_value, buf, 11))\n" " \t\t\treturn -EFAULT;\n" "+\t\tif (strlen(ascii_value) != 10)\n" @@ -90,4 +90,4 @@ "-- \n" 1.7.0.4 -2de9756327f6ae36e18252eb1ab60ea292e4c218ba2f72f9a2f93ea1d1b87b4c +5d22f6ea7c80a067ed1f8f5b393c0a9261867b8ff0a87873f8bd598b29675c6b
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.