summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/loc2c-runtime.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/loc2c-runtime.h b/runtime/loc2c-runtime.h
index ca26aa3b..aa6823fd 100644
--- a/runtime/loc2c-runtime.h
+++ b/runtime/loc2c-runtime.h
@@ -171,3 +171,10 @@
})
#endif
+
+#define deref_string(dst, addr, maxbytes)
+ ({
+ if (__strncpy_from_user ((dst), (const char __user *) (addr), (maxbytes)))
+ goto deref_fault;
+ (dst);
+ })