Skip to content

Commit

Permalink
[uCode] fix uninitialized value in logging of processor index
Browse files Browse the repository at this point in the history
This got broken in f8c2609.

Before that it would have effectively logged
`$processors{$pid}->{processor}`, but the `processor` entry
is also the key in `%processors`, i.e. equals `$pid`.
  • Loading branch information
stbuehler committed May 28, 2023
1 parent a443266 commit e85bfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl/lib/NeedRestart/uCode.pm
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ sub nr_ucode_check {
}
$ui->progress_step;

my $nstate = compare_ucode_versions( $debug, $processors{processor}, @nvars );
my $nstate = compare_ucode_versions( $debug, $pid, @nvars );
if ( $nstate > $state ) {
( $state, @vars ) = ( $nstate, @nvars );
}
Expand Down

0 comments on commit e85bfe3

Please sign in to comment.