summaryrefslogtreecommitdiffstats
path: root/arch/parisc/hpux/sys_hpux.c
diff options
context:
space:
mode:
authorLinus Torvalds2014-09-14 21:28:08 +0200
committerLinus Torvalds2014-09-14 21:28:08 +0200
commit5910cfdce307d6e5c55d747809e3c670c9e8a9a7 (patch)
tree52de74e98b3263f45b7d07c1d3000b199b0bc10d /arch/parisc/hpux/sys_hpux.c
parentMerge tag 'ntb-3.17' of git://github.com/jonmason/ntb (diff)
parentparisc: Implement new LWS CAS supporting 64 bit operations. (diff)
downloadkernel-qcow2-linux-5910cfdce307d6e5c55d747809e3c670c9e8a9a7.tar.gz
kernel-qcow2-linux-5910cfdce307d6e5c55d747809e3c670c9e8a9a7.tar.xz
kernel-qcow2-linux-5910cfdce307d6e5c55d747809e3c670c9e8a9a7.zip
Merge branch 'parisc-3.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc updates from Helge Deller: "The most important patch is a new Light Weigth Syscall (LWS) for 8, 16, 32 and 64 bit atomic CAS operations which is required in order to be able to implement the atomic gcc builtins on our platform. Other than that, we wire up the seccomp, getrandom and memfd_create syscalls, fixes a minor off-by-one bug and a wrong printk string" * 'parisc-3.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Implement new LWS CAS supporting 64 bit operations. parisc: Wire up seccomp, getrandom and memfd_create syscalls parisc: dino: fix %d confusingly prefixed with 0x in format string parisc: sys_hpux: NUL terminator is one past the end
Diffstat (limited to 'arch/parisc/hpux/sys_hpux.c')
-rw-r--r--arch/parisc/hpux/sys_hpux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/hpux/sys_hpux.c b/arch/parisc/hpux/sys_hpux.c
index d9dc6cd3b7d2..e5c4da035810 100644
--- a/arch/parisc/hpux/sys_hpux.c
+++ b/arch/parisc/hpux/sys_hpux.c
@@ -456,7 +456,7 @@ int hpux_sysfs(int opcode, unsigned long arg1, unsigned long arg2)
}
/* String could be altered by userspace after strlen_user() */
- fsname[len] = '\0';
+ fsname[len - 1] = '\0';
printk(KERN_DEBUG "that is '%s' as (char *)\n", fsname);
if ( !strcmp(fsname, "hfs") ) {