|
|
a83cc2 |
From bd1d37e3536136130df41ac8162ce5bb4f361f87 Mon Sep 17 00:00:00 2001
|
|
|
a83cc2 |
From: Thomas Huth <thuth@redhat.com>
|
|
|
a83cc2 |
Date: Tue, 1 Jun 2021 08:52:10 -0400
|
|
|
a83cc2 |
Subject: [PATCH 02/21] pc-bios/s390-ccw: don't try to read the next block if
|
|
|
a83cc2 |
end of chunk is reached
|
|
|
a83cc2 |
MIME-Version: 1.0
|
|
|
a83cc2 |
Content-Type: text/plain; charset=UTF-8
|
|
|
a83cc2 |
Content-Transfer-Encoding: 8bit
|
|
|
a83cc2 |
|
|
|
a83cc2 |
RH-Author: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
a83cc2 |
RH-MergeRequest: 8: Synchronize with RHEL-AV 8.5 release 19 to RHEL 9
|
|
|
a83cc2 |
RH-Commit: [1/8] 69a43520a9e7f0ab92bdfdc47281c7606f5159e7 (mrezanin/centos-src-qemu-kvm)
|
|
|
a83cc2 |
RH-Bugzilla: 1957194
|
|
|
a83cc2 |
RH-Acked-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
a83cc2 |
RH-Acked-by: Greg Kurz <gkurz@redhat.com>
|
|
|
a83cc2 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
a83cc2 |
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
a83cc2 |
|
|
|
a83cc2 |
From: Marc Hartmayer <mhartmay@linux.ibm.com>
|
|
|
a83cc2 |
|
|
|
a83cc2 |
Don't read the block if a null block number is reached, because this means that
|
|
|
a83cc2 |
the end of chunk is reached.
|
|
|
a83cc2 |
|
|
|
a83cc2 |
Reviewed-by: Collin Walling <walling@linux.ibm.com>
|
|
|
a83cc2 |
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
|
|
|
a83cc2 |
Message-Id: <20210416074736.17409-1-mhartmay@linux.ibm.com>
|
|
|
a83cc2 |
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
|
|
a83cc2 |
(cherry picked from commit a6625d38cce3901a7c1cba069f0abcf743a293f1)
|
|
|
a83cc2 |
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
|
|
a83cc2 |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
a83cc2 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
a83cc2 |
---
|
|
|
a83cc2 |
pc-bios/s390-ccw/bootmap.c | 2 +-
|
|
|
a83cc2 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
a83cc2 |
|
|
|
a83cc2 |
diff --git a/pc-bios/s390-ccw/bootmap.c b/pc-bios/s390-ccw/bootmap.c
|
|
|
a83cc2 |
index 44df7d16af..b46997c0b7 100644
|
|
|
a83cc2 |
--- a/pc-bios/s390-ccw/bootmap.c
|
|
|
a83cc2 |
+++ b/pc-bios/s390-ccw/bootmap.c
|
|
|
a83cc2 |
@@ -213,7 +213,7 @@ static int eckd_get_boot_menu_index(block_number_t s1b_block_nr)
|
|
|
a83cc2 |
next_block_nr = eckd_block_num(&s1b->seek[i + 1].chs);
|
|
|
a83cc2 |
}
|
|
|
a83cc2 |
|
|
|
a83cc2 |
- if (next_block_nr) {
|
|
|
a83cc2 |
+ if (next_block_nr && !is_null_block_number(next_block_nr)) {
|
|
|
a83cc2 |
read_block(next_block_nr, s2_next_blk,
|
|
|
a83cc2 |
"Cannot read stage2 boot loader");
|
|
|
a83cc2 |
}
|
|
|
a83cc2 |
--
|
|
|
a83cc2 |
2.27.0
|
|
|
a83cc2 |
|