diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-04-27 11:04:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-04-27 11:04:27 -0700 |
commit | 5e6720888523eaac7c548df0d263739c56a3c22e (patch) | |
tree | 65b88558a0fb09cf2eedd0592766fb00666bf721 /arch | |
parent | d1466bc583a81830cef2399a4b8a514398351b40 (diff) | |
parent | a64b89088bb1413bb84424f0b16a4d1f9bb0e947 (diff) | |
download | linux-stable-5e6720888523eaac7c548df0d263739c56a3c22e.tar.gz linux-stable-5e6720888523eaac7c548df0d263739c56a3c22e.tar.bz2 linux-stable-5e6720888523eaac7c548df0d263739c56a3c22e.zip |
Merge branch 'work.coredump' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull coredump updates from Al Viro:
"Just a couple of patches this cycle: use of seek + write instead of
expanding truncate and minor header cleanup"
* 'work.coredump' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
coredump.h: move CONFIG_COREDUMP-only stuff inside the ifdef
coredump: don't bother with do_truncate()
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/coredump.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/coredump.c b/arch/powerpc/platforms/cell/spufs/coredump.c index 60b5583e9eaf..1a587618015c 100644 --- a/arch/powerpc/platforms/cell/spufs/coredump.c +++ b/arch/powerpc/platforms/cell/spufs/coredump.c @@ -149,8 +149,7 @@ static int spufs_arch_write_note(struct spu_context *ctx, int i, return -EIO; } - if (!dump_skip(cprm, roundup(cprm->pos - ret + sz, 4) - cprm->pos)) - return -EIO; + dump_skip_to(cprm, roundup(cprm->pos - ret + sz, 4)); return 0; } |