powerpc/ps3: use dma_mapping_error()
authorVincent Stehlé <vincent.stehle@laposte.net>
Sun, 13 Dec 2020 18:26:22 +0000 (19:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:47:02 +0000 (13:47 +0100)
commit3c1e57a98271779ccc0ece03ef667d3a5af0bf1f
treeff87b9b7db40a1b6189bff431f3b46df9d0c1659
parent5d5827c7bf79bcaf43cdb7f4d4d24dc8fb9e5b5c
powerpc/ps3: use dma_mapping_error()

[ Upstream commit d0edaa28a1f7830997131cbce87b6c52472825d1 ]

The DMA address returned by dma_map_single() should be checked with
dma_mapping_error(). Fix the ps3stor_setup() function accordingly.

Fixes: 80071802cb9c ("[POWERPC] PS3: Storage Driver Core")
Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201213182622.23047-1-vincent.stehle@laposte.net
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ps3/ps3stor_lib.c