[PATCH] powerpc/ps3: use dma_mapping_error()

Geoff Levand geoff at infradead.org
Mon Dec 14 06:38:31 AEDT 2020


On 12/13/20 10:26 AM, Vincent Stehlé wrote:
> 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 at laposte.net>
> Cc: Geoff Levand <geoff at infradead.org>
> Cc: Geert Uytterhoeven <Geert.Uytterhoeven at sonycom.com>
> ---
>  drivers/ps3/ps3stor_lib.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Looks good.  Thanks for submitting.

Acked by: Geoff Levand <geoff at infradead.org>


More information about the Linuxppc-dev mailing list