diff options
author | Jiri Slaby <jslaby@suse.cz> | 2020-06-10 13:48:51 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-06-15 11:16:27 +0200 |
commit | 8e742aa79780b13cd300a42198c1a4cea9c89905 (patch) | |
tree | 086ba20ee898665af7953725eb2316ddd482bc62 /arch/x86/power/cpu.c | |
parent | 2c18bd525c47f882f033b0a813ecd09c93e1ecdf (diff) | |
download | linux-stable-8e742aa79780b13cd300a42198c1a4cea9c89905.tar.gz linux-stable-8e742aa79780b13cd300a42198c1a4cea9c89905.tar.bz2 linux-stable-8e742aa79780b13cd300a42198c1a4cea9c89905.zip |
syscalls: Fix offset type of ksys_ftruncate()
After the commit below, truncate() on x86 32bit uses ksys_ftruncate(). But
ksys_ftruncate() truncates the offset to unsigned long.
Switch the type of offset to loff_t which is what do_sys_ftruncate()
expects.
Fixes: 121b32a58a3a (x86/entry/32: Use IA32-specific wrappers for syscalls taking 64-bit arguments)
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Brian Gerst <brgerst@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20200610114851.28549-1-jslaby@suse.cz
Diffstat (limited to 'arch/x86/power/cpu.c')
0 files changed, 0 insertions, 0 deletions