All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20040610191004.GA1661@kroah.com>

diff --git a/a/1.txt b/N1/1.txt
index 0fb40bb..fbc5d2b 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -56,7 +56,7 @@ diff -Nru a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c
 -		data_ptrs = (u8 **) kmalloc(rdwr_arg.nmsgs * sizeof(u8 *),
 -					    GFP_KERNEL);
 +		data_ptrs = kmalloc(rdwr_arg.nmsgs * sizeof(u8 __user *), GFP_KERNEL);
- 		if (data_ptrs = NULL) {
+ 		if (data_ptrs == NULL) {
  			kfree(rdwr_pa);
  			return -ENOMEM;
 @@ -252,7 +251,7 @@
@@ -66,5 +66,5 @@ diff -Nru a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c
 -			data_ptrs[i] = rdwr_pa[i].buf;
 +			data_ptrs[i] = (u8 __user *)rdwr_pa[i].buf;
  			rdwr_pa[i].buf = kmalloc(rdwr_pa[i].len, GFP_KERNEL);
- 			if(rdwr_pa[i].buf = NULL) {
+ 			if(rdwr_pa[i].buf == NULL) {
  				res = -ENOMEM;
diff --git a/a/content_digest b/N1/content_digest
index 54e2f7a..0d64a60 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,9 +1,9 @@
  "ref\01086838266.32059.320.camel@dooby.cs.berkeley.edu\0"
  "ref\020040610044903.GE12308@parcelfarce.linux.theplanet.co.uk\0"
  "ref\020040610165821.GB32577@kroah.com\0"
- "From\0greg@kroah.com (Greg KH)\0"
- "Subject\0Finding user/kernel pointer bugs [no html]\0"
- "Date\0Thu, 19 May 2005 06:25:01 +0000\0"
+ "From\0Greg KH <greg@kroah.com>\0"
+ "Subject\0Re: Finding user/kernel pointer bugs [no html]\0"
+ "Date\0Thu, 10 Jun 2004 12:10:04 -0700\0"
  "To\0viro@parcelfarce.linux.theplanet.co.uk"
  " sensors@stimpy.netroedge.com\0"
  "Cc\0Robert T. Johnson <rtjohnso@eecs.berkeley.edu>"
@@ -68,7 +68,7 @@
  "-\t\tdata_ptrs = (u8 **) kmalloc(rdwr_arg.nmsgs * sizeof(u8 *),\n"
  "-\t\t\t\t\t    GFP_KERNEL);\n"
  "+\t\tdata_ptrs = kmalloc(rdwr_arg.nmsgs * sizeof(u8 __user *), GFP_KERNEL);\n"
- " \t\tif (data_ptrs = NULL) {\n"
+ " \t\tif (data_ptrs == NULL) {\n"
  " \t\t\tkfree(rdwr_pa);\n"
  " \t\t\treturn -ENOMEM;\n"
  "@@ -252,7 +251,7 @@\n"
@@ -78,7 +78,7 @@
  "-\t\t\tdata_ptrs[i] = rdwr_pa[i].buf;\n"
  "+\t\t\tdata_ptrs[i] = (u8 __user *)rdwr_pa[i].buf;\n"
  " \t\t\trdwr_pa[i].buf = kmalloc(rdwr_pa[i].len, GFP_KERNEL);\n"
- " \t\t\tif(rdwr_pa[i].buf = NULL) {\n"
+ " \t\t\tif(rdwr_pa[i].buf == NULL) {\n"
  " \t\t\t\tres = -ENOMEM;"
 
-0a71a9d6efba218517e828d6087c946da9fec4d5b1fc471ffcd9a96fc71eff0b
+7676102c0bce89392e1c7edf33cff82277732fd3a431c994b7f9b7c179d675b4

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.