[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH for-2.6 08/10] pc-bios/s390-ccw: fix old bug in ptr
From: |
Cornelia Huck |
Subject: |
[Qemu-devel] [PATCH for-2.6 08/10] pc-bios/s390-ccw: fix old bug in ptr increment |
Date: |
Wed, 9 Mar 2016 18:28:06 +0100 |
From: "Eugene (jno) Dvurechenski" <address@hidden>
We need to increment by the size of the structure, whereas 'ns' is 'uint8_t *'.
Acked-by: Christian Borntraeger <address@hidden>
Acked-by: Cornelia Huck <address@hidden>
Signed-off-by: Eugene (jno) Dvurechenski <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
pc-bios/s390-ccw/bootmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc-bios/s390-ccw/bootmap.c b/pc-bios/s390-ccw/bootmap.c
index 415508b..4925302 100644
--- a/pc-bios/s390-ccw/bootmap.c
+++ b/pc-bios/s390-ccw/bootmap.c
@@ -424,7 +424,7 @@ static void ipl_scsi(void)
IPL_assert(magic_match(sec, ZIPL_MAGIC), "No zIPL magic");
ns_end = sec + virtio_get_block_size();
- for (ns = (sec + pte_len); (ns + pte_len) < ns_end; ns++) {
+ for (ns = (sec + pte_len); (ns + pte_len) < ns_end; ns += pte_len) {
prog_table_entry = (ScsiBlockPtr *)ns;
if (!prog_table_entry->blockno) {
break;
--
2.3.9
- [Qemu-devel] [PATCH for-2.6 00/10] s390x patches for 2.6, Cornelia Huck, 2016/03/09
- [Qemu-devel] [PATCH for-2.6 05/10] s390x/cpu: Add CPU property links, Cornelia Huck, 2016/03/09
- [Qemu-devel] [PATCH for-2.6 03/10] s390x/cpu: Get rid of side effects when creating a vcpu, Cornelia Huck, 2016/03/09
- [Qemu-devel] [PATCH for-2.6 02/10] s390x/cpu: Set initial CPU state in common routine, Cornelia Huck, 2016/03/09
- [Qemu-devel] [PATCH for-2.6 08/10] pc-bios/s390-ccw: fix old bug in ptr increment,
Cornelia Huck <=
- [Qemu-devel] [PATCH for-2.6 07/10] s390x/cpu: Allow hotplug of CPUs, Cornelia Huck, 2016/03/09
- [Qemu-devel] [PATCH for-2.6 09/10] s390x: Introduce machine definition macros, Cornelia Huck, 2016/03/09
- [Qemu-devel] [PATCH for-2.6 06/10] s390x/cpu: Add error handling to cpu creation, Cornelia Huck, 2016/03/09
- [Qemu-devel] [PATCH for-2.6 01/10] s390x/cpu: Cleanup init in preparation for hotplug, Cornelia Huck, 2016/03/09
- [Qemu-devel] [PATCH for-2.6 04/10] s390x/cpu: Tolerate max_cpus, Cornelia Huck, 2016/03/09
- [Qemu-devel] [PATCH for-2.6 10/10] s390x: Introduce S390MachineClass, Cornelia Huck, 2016/03/09