diff options
Diffstat (limited to 'runtime/copy.c')
-rw-r--r-- | runtime/copy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/copy.c b/runtime/copy.c index 75a185c4..f4d906b3 100644 --- a/runtime/copy.c +++ b/runtime/copy.c @@ -124,7 +124,7 @@ _stp_strncpy_from_user(char *dst, const char __user *src, long count) * */ -void _stp_string_from_user (String str, const char __user *src, long count) +long _stp_string_from_user (String str, const char __user *src, long count) { long res = -EFAULT; if (count > STP_STRING_SIZE - str->len - 1) @@ -136,6 +136,7 @@ void _stp_string_from_user (String str, const char __user *src, long count) str->buf[str->len] = '\0'; } } + return res; } /** Copy a block of data from user space. |