All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20180319190136.7441-3-acme@kernel.org>

diff --git a/a/1.txt b/N1/1.txt
index b4b9eda..fc242b7 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -7,7 +7,7 @@ before writing to fd.
 Detected by cppcheck:
 
 tools/perf/tests/bp_account.c:115: (warning) Either the condition
-'cnt=100' is redundant or the array 'fd[100]' is accessed at index 100,
+'cnt==100' is redundant or the array 'fd[100]' is accessed at index 100,
 which is out of bounds.
 
 Signed-off-by: Colin King <colin.king@canonical.com>
@@ -36,7 +36,7 @@ index 2f75fa0c4fef..9e88d7608951 100644
 -		if (fd[cnt] < 0)
 -			break;
 -
- 		if (cnt = 100) {
+ 		if (cnt == 100) {
  			pr_debug("way too many debug registers, fix the test\n");
  			return 0;
  		}
diff --git a/a/content_digest b/N1/content_digest
index 4d053ea..e71bc3e 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\020180319190136.7441-1-acme@kernel.org\0"
  "From\0Arnaldo Carvalho de Melo <acme@kernel.org>\0"
  "Subject\0[PATCH 02/14] perf tests: Fix out of bounds access on array fd when cnt is 100\0"
- "Date\0Mon, 19 Mar 2018 19:01:24 +0000\0"
+ "Date\0Mon, 19 Mar 2018 16:01:24 -0300\0"
  "To\0Ingo Molnar <mingo@kernel.org>\0"
  "Cc\0linux-kernel@vger.kernel.org"
   linux-perf-users@vger.kernel.org
@@ -23,7 +23,7 @@
  "Detected by cppcheck:\n"
  "\n"
  "tools/perf/tests/bp_account.c:115: (warning) Either the condition\n"
- "'cnt=100' is redundant or the array 'fd[100]' is accessed at index 100,\n"
+ "'cnt==100' is redundant or the array 'fd[100]' is accessed at index 100,\n"
  "which is out of bounds.\n"
  "\n"
  "Signed-off-by: Colin King <colin.king@canonical.com>\n"
@@ -52,7 +52,7 @@
  "-\t\tif (fd[cnt] < 0)\n"
  "-\t\t\tbreak;\n"
  "-\n"
- " \t\tif (cnt = 100) {\n"
+ " \t\tif (cnt == 100) {\n"
  " \t\t\tpr_debug(\"way too many debug registers, fix the test\\n\");\n"
  " \t\t\treturn 0;\n"
  " \t\t}\n"
@@ -66,4 +66,4 @@
  "-- \n"
  2.14.3
 
-778ec2d502ae4c8bbbb7681c233bbfcbb52d1b4eeb78075a00e093dde84babdc
+79a1d6d7474b1317ea931ac74236bf158ee66779d3cef20ff241fb2bdfa05ae1

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.