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>
Wed, 30 Dec 2020 10:53:53 +0000 (11:53 +0100)
commit280f29c6bae156b9f13c3a3a3eb7de8b3df0c8ed
tree6432918f80af6f125f51a05bcf01390191ef79e0
parent34169b582aa9ed98cd48ec543b8f1b1b72b67e52
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