]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: fix inverted logic in is_extable_fault_address().
authorQuentin Casasnovas <quentin.casasnovas@oracle.com>
Thu, 16 Apr 2015 03:33:32 +0000 (13:03 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 22 Apr 2015 08:01:31 +0000 (17:31 +0930)
commitd82b9a723910fe7e68b56dd17b7e5ff367316fd0
treefec8a1ff01f17a9ede642bc14ba20b1578692d5d
parent99d6fc5f9d725c2088e8337410944d1ce074d109
modpost: fix inverted logic in is_extable_fault_address().

As Guenter pointed out, we want to assert that extable_entry_size has been
discovered and not the other way around.  Moreover, this sanity check is
only valid when we're not dealing with the first relocation in __ex_table,
since we have not discovered the extable entry size at that point.

This was leading to a divide-by-zero on some architectures and make the
build fail.

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>
scripts/mod/modpost.c