summaryrefslogtreecommitdiffstats
path: root/sys/arm64
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2016-02-02 10:11:56 +0000
committerandrew <andrew@FreeBSD.org>2016-02-02 10:11:56 +0000
commit86ce64705e75081226b33569e8335f94947a0514 (patch)
tree82497bbd25cb2b6b54065d80c11416fca4b1d785 /sys/arm64
parentd381a76dda3865495a367b4103581a44fb6ec986 (diff)
downloadFreeBSD-src-86ce64705e75081226b33569e8335f94947a0514.zip
FreeBSD-src-86ce64705e75081226b33569e8335f94947a0514.tar.gz
Correctly handle the case where copystr(9) is given a string longer than
the passed in length. In this case we need to return ENAMETOOLONG.
Diffstat (limited to 'sys/arm64')
-rw-r--r--sys/arm64/arm64/copystr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/arm64/copystr.c b/sys/arm64/arm64/copystr.c
index 008fdd1..ebb4acd 100644
--- a/sys/arm64/arm64/copystr.c
+++ b/sys/arm64/arm64/copystr.c
@@ -56,6 +56,6 @@ copystr(const void * __restrict kfaddr, void * __restrict kdaddr, size_t len,
if (lencopied != NULL)
*lencopied = pos;
- return (0);
+ return (error);
}
OpenPOWER on IntegriCloud