Blame SOURCES/0024-efiboot-parse_scsi_link-fix-the-offset-searching-for.patch
|
|
821f82 |
From 50e8c66f92b2d93d20c2524936f6858fd2b07afe Mon Sep 17 00:00:00 2001
|
|
|
821f82 |
From: Peter Jones <pjones@redhat.com>
|
|
|
821f82 |
Date: Thu, 21 Jun 2018 14:23:40 -0400
|
|
|
821f82 |
Subject: [PATCH 24/24] efiboot: parse_scsi_link(): fix the offset searching
|
|
|
821f82 |
for the port
|
|
|
821f82 |
|
|
|
821f82 |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
821f82 |
---
|
|
|
821f82 |
src/linux-scsi.c | 2 +-
|
|
|
821f82 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
821f82 |
|
|
|
821f82 |
diff --git a/src/linux-scsi.c b/src/linux-scsi.c
|
|
|
821f82 |
index 80c2fb7d82e..2e4f710badf 100644
|
|
|
821f82 |
--- a/src/linux-scsi.c
|
|
|
821f82 |
+++ b/src/linux-scsi.c
|
|
|
821f82 |
@@ -92,7 +92,7 @@ parse_scsi_link(const char *current, uint32_t *scsi_host,
|
|
|
821f82 |
pos0 = 0;
|
|
|
821f82 |
|
|
|
821f82 |
debug("searching for port-4:0 or port-4:0:0");
|
|
|
821f82 |
- rc = sscanf(current, "port-%d:%d%n:%d%n", &tosser0,
|
|
|
821f82 |
+ rc = sscanf(current+sz, "port-%d:%d%n:%d%n", &tosser0,
|
|
|
821f82 |
&tosser1, &pos0, &tosser2, &pos1);
|
|
|
821f82 |
debug("current:\"%s\" rc:%d pos0:%d pos1:%d\n", current+sz, rc, pos0, pos1);
|
|
|
821f82 |
arrow(LOG_DEBUG, spaces, 9, pos0, rc, 2);
|
|
|
821f82 |
--
|
|
|
821f82 |
2.17.1
|
|
|
821f82 |
|