All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20180125141525.GA7351@mwanda>

diff --git a/a/1.txt b/N1/1.txt
index 4d4f7a9..b52cfce 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -17,10 +17,10 @@ index 0bf031b7e4fa..2a4882cddc51 100644
  
 -	while (i--)
 +	for (i = 0; i < ARRAY_SIZE(sr030pc30_formats); i++) {
- 		if (mf->code = sr030pc30_formats[i].code)
+ 		if (mf->code == sr030pc30_formats[i].code)
  			break;
 +	}
-+	if (i = ARRAY_SIZE(sr030pc30_formats))
++	if (i == ARRAY_SIZE(sr030pc30_formats))
 +		i = 0;
  
  	mf->code = sr030pc30_formats[i].code;
diff --git a/a/content_digest b/N1/content_digest
index d182ca2..af3a254 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,6 +1,6 @@
  "From\0Dan Carpenter <dan.carpenter@oracle.com>\0"
  "Subject\0[PATCH] [media] sr030pc30: prevent array underflow in try_fmt()\0"
- "Date\0Thu, 25 Jan 2018 14:15:25 +0000\0"
+ "Date\0Thu, 25 Jan 2018 17:15:25 +0300\0"
  "To\0Mauro Carvalho Chehab <mchehab@kernel.org>\0"
  "Cc\0linux-media@vger.kernel.org"
  " kernel-janitors@vger.kernel.org\0"
@@ -25,12 +25,12 @@
  " \n"
  "-\twhile (i--)\n"
  "+\tfor (i = 0; i < ARRAY_SIZE(sr030pc30_formats); i++) {\n"
- " \t\tif (mf->code = sr030pc30_formats[i].code)\n"
+ " \t\tif (mf->code == sr030pc30_formats[i].code)\n"
  " \t\t\tbreak;\n"
  "+\t}\n"
- "+\tif (i = ARRAY_SIZE(sr030pc30_formats))\n"
+ "+\tif (i == ARRAY_SIZE(sr030pc30_formats))\n"
  "+\t\ti = 0;\n"
  " \n"
  " \tmf->code = sr030pc30_formats[i].code;"
 
-0eef3654f249e41bdd09f4d0aabdce408456b3ed1674ad96cb058a064a0f08b3
+ba5ef1ce91a7e4eab07823b2e2797a684fbbd7e40009e3d9b7ffc84ef69c5338

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.