All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20030806100702.78298ffe.khali@linux-fr.org>

diff --git a/a/1.txt b/N1/1.txt
index 8646c2e..6a712b2 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -52,7 +52,7 @@ Jean
  				   sizeof(rdwr_arg)))
 @@ -265,21 +266,28 @@
  
- 		if (rdwr_pa = NULL) return -ENOMEM;
+ 		if (rdwr_pa == NULL) return -ENOMEM;
  
 +		if (copy_from_user(rdwr_pa, rdwr_arg.msgs,
 +				   rdwr_arg.nmsgs * sizeof(struct i2c_msg))) {
@@ -62,7 +62,7 @@ Jean
 +
 +		data_ptrs = (u8 **) kmalloc(rdwr_arg.nmsgs * sizeof(u8 *),
 +					    GFP_KERNEL);
-+		if (data_ptrs = NULL) {
++		if (data_ptrs == NULL) {
 +			kfree(rdwr_pa);
 +			return -ENOMEM;
 +		}
@@ -84,7 +84,7 @@ Jean
  			}
 +			data_ptrs[i] = 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)
  			{
 @@ -287,10 +295,11 @@
  				break;
diff --git a/a/content_digest b/N1/content_digest
index c05469f..f400cc9 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -2,9 +2,9 @@
  "ref\020030804193212.11786d06.vsu@altlinux.ru\0"
  "ref\020030805103240.02221bed.khali@linux-fr.org\0"
  "ref\020030805210704.GA5452@kroah.com\0"
- "From\0khali@linux-fr.org (Jean Delvare)\0"
- "Subject\0[PATCH 2.4] i2c-dev user/kernel bug and mem leak\0"
- "Date\0Thu, 19 May 2005 06:24:10 +0000\0"
+ "From\0Jean Delvare <khali@linux-fr.org>\0"
+ "Subject\0Re: [PATCH 2.4] i2c-dev user/kernel bug and mem leak\0"
+ "Date\0Wed, 6 Aug 2003 10:07:02 +0200\0"
  "To\0Marcelo Tosatti <marcelo@conectiva.com.br>\0"
  "Cc\0sensors@stimpy.netroedge.com"
   linux-kernel@vger.kernel.org
@@ -67,7 +67,7 @@
  " \t\t\t\t   sizeof(rdwr_arg)))\n"
  "@@ -265,21 +266,28 @@\n"
  " \n"
- " \t\tif (rdwr_pa = NULL) return -ENOMEM;\n"
+ " \t\tif (rdwr_pa == NULL) return -ENOMEM;\n"
  " \n"
  "+\t\tif (copy_from_user(rdwr_pa, rdwr_arg.msgs,\n"
  "+\t\t\t\t   rdwr_arg.nmsgs * sizeof(struct i2c_msg))) {\n"
@@ -77,7 +77,7 @@
  "+\n"
  "+\t\tdata_ptrs = (u8 **) kmalloc(rdwr_arg.nmsgs * sizeof(u8 *),\n"
  "+\t\t\t\t\t    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"
  "+\t\t}\n"
@@ -99,7 +99,7 @@
  " \t\t\t}\n"
  "+\t\t\tdata_ptrs[i] = 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{\n"
  "@@ -287,10 +295,11 @@\n"
  " \t\t\t\tbreak;\n"
@@ -157,4 +157,4 @@
  "Jean Delvare\n"
  http://www.ensicaen.ismra.fr/~delvare/
 
-d521dcd84f9ae5501c40f5024635b2e26e9be8b36265bf4c2a7b13884ad22773
+8e14b258c4dd22b8c76e8029d0af90e3370979f65cf7f47a325107b83c3f0078

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.