mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-22 08:09:41 +00:00
fix sense of end_offset test
This commit is contained in:
parent
fc0494c5b4
commit
a460c4aa14
@ -59,7 +59,7 @@ sub process_region
|
|||||||
|
|
||||||
# Adjust the end offset if they ask for too much
|
# Adjust the end offset if they ask for too much
|
||||||
$end_offset = $length - 0x30
|
$end_offset = $length - 0x30
|
||||||
unless (defined $end_offset || $end_offset > $length - 0x30);
|
if !defined $end_offset or $end_offset > $length - 0x30;
|
||||||
|
|
||||||
for(my $offset = $start_offset ; $offset < $end_offset ; $offset += $step)
|
for(my $offset = $start_offset ; $offset < $end_offset ; $offset += $step)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user