]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/extable.c
Merge tag 'for-linus-5.4-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / kernel / extable.c
index e23cce6e6092af76569e882efdee87b10638efd9..f6c9406eec7db9cf478f9509d482f16d4164ce57 100644 (file)
@@ -40,13 +40,20 @@ void __init sort_main_extable(void)
        }
 }
 
+/* Given an address, look for it in the kernel exception table */
+const
+struct exception_table_entry *search_kernel_exception_table(unsigned long addr)
+{
+       return search_extable(__start___ex_table,
+                             __stop___ex_table - __start___ex_table, addr);
+}
+
 /* Given an address, look for it in the exception tables. */
 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 - __start___ex_table, addr);
+       e = search_kernel_exception_table(addr);
        if (!e)
                e = search_module_extables(addr);
        return e;