Skip to content

Commit

Permalink
Merge pull request #1301 from anatasluo/master
Browse files Browse the repository at this point in the history
kpatch-build: rela section could disappear after patched
  • Loading branch information
jpoimboe committed Sep 23, 2022
2 parents 1f6a7db + 9fac261 commit 80fc15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kpatch-build/create-diff-object.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ static void kpatch_correlate_section(struct section *sec_orig,
__kpatch_correlate_section(sec_orig->base, sec_patched->base);
sec_orig = sec_orig->base;
sec_patched = sec_patched->base;
} else if (sec_orig->rela) {
} else if (sec_orig->rela && sec_patched->rela) {
__kpatch_correlate_section(sec_orig->rela, sec_patched->rela);
}

Expand Down

0 comments on commit 80fc15a

Please sign in to comment.