diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-02-01 13:31:16 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-02-03 22:36:59 +1100 |
commit | e414e2938ee26e734f19e92a60cd090ebaff37e6 (patch) | |
tree | bc13f84a0c618864b3802449517b0e096a9817bb /arch/powerpc/mm | |
parent | 0198322379c25215b2778482bf1221743a76e2b5 (diff) | |
download | linux-e414e2938ee26e734f19e92a60cd090ebaff37e6.tar.bz2 |
powerpc/xive: Add some error handling code to 'xive_spapr_init()'
'xive_irq_bitmap_add()' can return -ENOMEM.
In this case, we should free the memory already allocated and return
'false' to the caller.
Also add an error path which undoes the 'tima = ioremap(...)'
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/564998101804886b151235c8a9f93020923bfd2c.1643718324.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'arch/powerpc/mm')
0 files changed, 0 insertions, 0 deletions