Skip to content

Commit 80fc15a

Browse files
authored
Merge pull request #1301 from anatasluo/master
kpatch-build: rela section could disappear after patched
2 parents 1f6a7db + 9fac261 commit 80fc15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kpatch-build/create-diff-object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ static void kpatch_correlate_section(struct section *sec_orig,
974974
__kpatch_correlate_section(sec_orig->base, sec_patched->base);
975975
sec_orig = sec_orig->base;
976976
sec_patched = sec_patched->base;
977-
} else if (sec_orig->rela) {
977+
} else if (sec_orig->rela && sec_patched->rela) {
978978
__kpatch_correlate_section(sec_orig->rela, sec_patched->rela);
979979
}
980980

0 commit comments

Comments
 (0)