Re: [PATCH net-next] amd-xgbe: use dma_mapping_error to check map errors

From: David Miller
Date: Thu Jul 26 2018 - 00:18:00 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Thu, 26 Jul 2018 09:51:27 +0800

> The dma_mapping_error() returns true or false, but we want
> to return -ENOMEM if there was an error.
>
> Fixes: 174fd2597b0b ("amd-xgbe: Implement split header receive support")
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied, thank you.