summaryrefslogtreecommitdiff
path: root/arch/parisc/kernel/process.c
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2018-01-22 10:40:32 +0100
committerPetr Mladek <pmladek@suse.com>2018-01-22 10:40:32 +0100
commit3ccdc5190f8df12dfafff9264e406c5496401da5 (patch)
treeca4afea86b2ae2625125658b2e0af2e043e84017 /arch/parisc/kernel/process.c
parent6fd78a1a99c9580da49ee8f951fdce9846256375 (diff)
parent1df7338ac96558d5ae4c1a9dd5d1cb60fcd1bdb2 (diff)
Merge branch 'for-4.16-deprecate-printk-pf' into for-4.16
Diffstat (limited to 'arch/parisc/kernel/process.c')
-rw-r--r--arch/parisc/kernel/process.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/parisc/kernel/process.c b/arch/parisc/kernel/process.c
index 30f92391a93e..6c4585103a91 100644
--- a/arch/parisc/kernel/process.c
+++ b/arch/parisc/kernel/process.c
@@ -276,6 +276,15 @@ void *dereference_function_descriptor(void *ptr)
ptr = p;
return ptr;
}
+
+void *dereference_kernel_function_descriptor(void *ptr)
+{
+ if (ptr < (void *)__start_opd ||
+ ptr >= (void *)__end_opd)
+ return ptr;
+
+ return dereference_function_descriptor(ptr);
+}
#endif
static inline unsigned long brk_rnd(void)