diff for duplicates of <20100903124105.GJ5437@bicker> diff --git a/a/1.txt b/N1/1.txt index ff90a58..40f1f15 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -9,7 +9,7 @@ index b7e4c36..310a51e 100644 --- a/kernel/pm_qos_params.c +++ b/kernel/pm_qos_params.c @@ -389,10 +389,11 @@ 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; + ascii_value[10] = '\0'; diff --git a/a/content_digest b/N1/content_digest index 857bfb4..99a0937 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <error27@gmail.com>\0" "Subject\0[patch] pm_qos_params: cleanup: terminate a string\0" - "Date\0Fri, 03 Sep 2010 12:41:06 +0000\0" + "Date\0Fri, 3 Sep 2010 14:41:06 +0200\0" "To\0Rafael J. Wysocki <rjw@sisk.pl>\0" "Cc\0mark gross <markgross@thegnar.org>" James Bottomley <James.Bottomley@suse.de> @@ -21,7 +21,7 @@ "--- a/kernel/pm_qos_params.c\n" "+++ b/kernel/pm_qos_params.c\n" "@@ -389,10 +389,11 @@ 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\tascii_value[10] = '\\0';\n" @@ -33,4 +33,4 @@ " \t} else\n" " \t\treturn -EINVAL;" -7b8455e339e066d14a9740b32d37fabc4df6ad58f5d414b1c09ec43322e7a6d9 +b1cda39ae0f23366c89525fdebaec0175b4ba44eba7a628cd58189ee0b601858
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.