All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20100907062227.GB25651@gvim.org>

diff --git a/a/1.txt b/N1/1.txt
index 7709337..fa65f45 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -17,7 +17,7 @@ thanks for finding my screw up!
 > --- 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';
@@ -58,7 +58,7 @@ index f42d3f7..db4295a 100644
  	}
  	spin_unlock_irqrestore(&pm_qos_lock, flags);
 @@ -374,10 +374,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 368e913..bc24219 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\020100903124105.GJ5437@bicker\0"
  "From\0mark gross <markgross@thegnar.org>\0"
  "Subject\0Re: [patch] pm_qos_params: cleanup: terminate a string\0"
- "Date\0Tue, 07 Sep 2010 06:22:27 +0000\0"
+ "Date\0Mon, 6 Sep 2010 23:22:27 -0700\0"
  "To\0Dan Carpenter <error27@gmail.com>"
   Rafael J. Wysocki <rjw@sisk.pl>
   mark gross <markgross@thegnar.org>
@@ -31,7 +31,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"
@@ -72,7 +72,7 @@
  " \t}\n"
  " \tspin_unlock_irqrestore(&pm_qos_lock, flags);\n"
  "@@ -374,10 +374,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"
@@ -88,4 +88,4 @@
  "-- \n"
  1.7.0.4
 
-9a56bfb776d407528e2482b2ac27562d5cb0c7be6645fa45ec44f60f740fb3a7
+325fb60d13d2f5e089c167dbea27e4d31a55380b3a82c4c19864c2325c4576f5

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.