Blame SOURCES/d98326e8b6b2ac65ca64b1c7a71ba019232d3a7b.patch
|
David Johansen |
447ac5 |
commit d98326e8b6b2ac65ca64b1c7a71ba019232d3a7b
|
|
David Johansen |
45192c |
Author: Cong Wang <xiyou.wangcong@gmail.com>
|
|
David Johansen |
45192c |
Date: Thu Feb 27 16:24:06 2020 -0800
|
|
David Johansen |
45192c |
|
|
David Johansen |
45192c |
Fix a typo in ras-mc-ctl
|
|
David Johansen |
45192c |
|
|
David Johansen |
45192c |
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
|
|
David Johansen |
45192c |
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
|
|
David Johansen |
45192c |
|
|
David Johansen |
45192c |
diff --git a/util/ras-mc-ctl.in b/util/ras-mc-ctl.in
|
|
David Johansen |
447ac5 |
index 665a042..54ab180 100755
|
|
David Johansen |
45192c |
--- a/util/ras-mc-ctl.in
|
|
David Johansen |
45192c |
+++ b/util/ras-mc-ctl.in
|
|
David Johansen |
45192c |
@@ -270,8 +270,8 @@ sub parse_dimm_nodes
|
|
David Johansen |
45192c |
for (my $i = 1; $i < scalar(@temp); $i += 2) {
|
|
David Johansen |
45192c |
$pos[$i / 2] = $temp[$i];
|
|
David Johansen |
45192c |
|
|
David Johansen |
45192c |
- if ($pos[$i / 2] > $max_pos[$i / 2]) {
|
|
David Johansen |
45192c |
- $max_pos[$i / 2 + 1] = $pos[$i / 2];
|
|
David Johansen |
45192c |
+ if ($pos[$i / 2] > $max_pos[$i / 2 + 1]) {
|
|
David Johansen |
45192c |
+ $max_pos[$i / 2 + 1] = $pos[$i / 2];
|
|
David Johansen |
45192c |
}
|
|
David Johansen |
45192c |
}
|
|
David Johansen |
45192c |
if ($mc > $max_pos[0]) {
|