Skip to contentSkip to conversation

xsplice: Missing if ( sec )

PATCH In review Konrad Rzeszutek Wilk 3 participants 4 messages May 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xsplice: Missing if ( sec )

Add the missing conditional.

---
This has been in there since v3 posting! And I really need to finish with the OSSTest regression tests to catch this.

Cc Andrew Cooper <[email protected]>
Cc Jan Beulich <[email protected]>
Cc Wei Liu <[email protected]>
---
 xen/common/xsplice.c | 1 +
 1 file changed, 1 insertion(+)
xen/common/xsplice.c +1 -0
index 777faa7..c9fc53a 100644
@@ -548,6 +548,7 @@ static int prepare_payload(struct payload *payload,
     }
 
     sec = xsplice_elf_sec_by_name(elf, ELF_XSPLICE_DEPENDS);
+    if ( sec )
     {
         n = sec->load_addr;
 
Signature · 7 lines
2.5.0


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Konrad Rzeszutek Wilk

Add the missing conditional.

FWIW:

And subject to ack from HV maintainer:

Quoted 26 lines

---
This has been in there since v3 posting! And I really need to finish with the OSSTest regression tests to catch this.

Cc Andrew Cooper <[email protected]>
Cc Jan Beulich <[email protected]>
Cc Wei Liu <[email protected]>
---
 xen/common/xsplice.c | 1 +
 1 file changed, 1 insertion(+)
xen/common/xsplice.c +1 -0
index 777faa7..c9fc53a 100644
@@ -548,6 +548,7 @@ static int prepare_payload(struct payload *payload,
     }
 
     sec = xsplice_elf_sec_by_name(elf, ELF_XSPLICE_DEPENDS);
+    if ( sec )
     {
         n = sec->load_addr;
 
Signature · 1 line
2.5.0

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 02.05.16 at 15:09, <[email protected]> wrote:
Quoted 5 lines · Konrad Rzeszutek Wilk

Add the missing conditional.

Quoted 7 lines

FWIW:

And subject to ack from HV maintainer:

A think the ack can basically be implied from the Reported-by above; Konrad - feel free.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
In reply to Wei Liu
Quoted 7 lines · Wei Liu
Quoted 5 lines · Konrad Rzeszutek Wilk

Add the missing conditional.

Quoted 8 lines

FWIW:

And subject to ack from HV maintainer:

I would like to have Ack from Jan, Andrew or Ross if possible. But this bug is so trivial so whether they ack it or not my release ack stands.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel