summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorQuentin Casasnovas <quentin.casasnovas@oracle.com>2015-04-16 13:05:36 +0930
committerRusty Russell <rusty@rustcorp.com.au>2015-04-22 17:31:32 +0930
commite84048aa173f2403fa468cb189f101b57fece539 (patch)
tree09f4b1b0db1513c75e46eeffd4369bd2f8021106 /scripts/patch-kernel
parentd3df4de7eb095cc4334759a5e65bf3bfb4be04f1 (diff)
modpost: fix extable entry size calculation.
As Guenter pointed out, we were never really calculating the extable entry size because the pointer arithmetic was simply wrong. We want to check we're handling the second relocation in __ex_table to infer an entry size, but we were using (void*) pointers instead of Elf_Rel[a]* ones. This fixes the problem by moving that check in the caller (since we can deal with different types of relocations) and add is_second_extable_reloc() to make the whole thing more readable. Signed-off-by: Quentin Casasnovas <quentin.casasnovas@oracle.com> Reported-by: Guenter Roeck <linux@roeck-us.net> CC: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions