]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/spufs: Fix the type of ret in spufs_arch_write_note
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Jun 2020 08:55:54 +0000 (10:55 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jul 2020 07:43:31 +0000 (17:43 +1000)
commite5692ea952e53a6c33790942c7785583f57af4d4
tree872d058d93b318cfaf6d4c4177b432bc9d8cd004
parentb3aa0d3be821eebdb7d3816b41248c5106b050d1
powerpc/spufs: Fix the type of ret in spufs_arch_write_note

Both the ->dump method and snprintf return an int.  So switch to an
int and properly handle errors from ->dump.

Fixes: 2af70ebc2aaa ("powerpc/spufs: simplify spufs core dumping")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200610085554.5647-1-hch@lst.de
arch/powerpc/platforms/cell/spufs/coredump.c