powerpc/ps3: use dma_mapping_error()
authorVincent Stehlé <vincent.stehle@laposte.net>
Sun, 13 Dec 2020 18:26:22 +0000 (19:26 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Dec 2020 11:50:12 +0000 (22:50 +1100)
commitd0edaa28a1f7830997131cbce87b6c52472825d1
tree4dbd378e0e0d9df54885a95f1179e1da7fc7aa46
parent328e7e487a464aad024fbde6663b7859df082b7b
powerpc/ps3: use dma_mapping_error()

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
drivers/ps3/ps3stor_lib.c