diff options
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -331,7 +331,9 @@ out: | |||
331 | 331 | ||
332 | asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length) | 332 | asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length) |
333 | { | 333 | { |
334 | return do_sys_ftruncate(fd, length, 1); | 334 | long ret = do_sys_ftruncate(fd, length, 1); |
335 | prevent_tail_call(ret); | ||
336 | return ret; | ||
335 | } | 337 | } |
336 | 338 | ||
337 | /* LFS versions of truncate are only needed on 32 bit machines */ | 339 | /* LFS versions of truncate are only needed on 32 bit machines */ |
@@ -343,7 +345,9 @@ asmlinkage long sys_truncate64(const char __user * path, loff_t length) | |||
343 | 345 | ||
344 | asmlinkage long sys_ftruncate64(unsigned int fd, loff_t length) | 346 | asmlinkage long sys_ftruncate64(unsigned int fd, loff_t length) |
345 | { | 347 | { |
346 | return do_sys_ftruncate(fd, length, 0); | 348 | long ret = do_sys_ftruncate(fd, length, 0); |
349 | prevent_tail_call(ret); | ||
350 | return ret; | ||
347 | } | 351 | } |
348 | #endif | 352 | #endif |
349 | 353 | ||