]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - kernel/extable.c
lib/extable.c: use bsearch() library function in search_extable()
[mirror_ubuntu-artful-kernel.git] / kernel / extable.c
index 223df4a328a49873e0c4754246f4756d1d16188b..38c2412401a1b118d53d3cff92eba24753134aed 100644 (file)
@@ -55,7 +55,8 @@ const struct exception_table_entry *search_exception_tables(unsigned long addr)
 {
        const struct exception_table_entry *e;
 
-       e = search_extable(__start___ex_table, __stop___ex_table-1, addr);
+       e = search_extable(__start___ex_table,
+                          __stop___ex_table - __start___ex_table, addr);
        if (!e)
                e = search_module_extables(addr);
        return e;