lib/extable.c: use bsearch() library function in search_extable()
[thomas@m3y3r.de: v3: fix arch specific implementations] Link: http://lkml.kernel.org/r/1497890858.12931.7.camel@m3y3r.de Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
12e8fd6fd3
commit
a94c33dd1f
@@ -317,7 +317,8 @@ const struct exception_table_entry *search_module_dbetables(unsigned long addr)
|
||||
|
||||
spin_lock_irqsave(&dbe_lock, flags);
|
||||
list_for_each_entry(dbe, &dbe_list, dbe_list) {
|
||||
e = search_extable(dbe->dbe_start, dbe->dbe_end - 1, addr);
|
||||
e = search_extable(dbe->dbe_start,
|
||||
dbe->dbe_end - dbe->dbe_start, addr);
|
||||
if (e)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user