projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[platform/kernel/linux-starfive.git]
/
mm
/
maccess.c
diff --git
a/mm/maccess.c
b/mm/maccess.c
index
5f4d240
..
074f6b0
100644
(file)
--- a/
mm/maccess.c
+++ b/
mm/maccess.c
@@
-97,7
+97,7
@@
long strncpy_from_kernel_nofault(char *dst, const void *unsafe_addr, long count)
return src - unsafe_addr;
Efault:
pagefault_enable();
- dst[
-1
] = '\0';
+ dst[
0
] = '\0';
return -EFAULT;
}