Skip to content
Commit b24dbfe9 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller
Browse files

amd-xgbe: use dma_mapping_error to check map errors



The dma_mapping_error() returns true or false, but we want
to return -ENOMEM if there was an error.

Fixes: 174fd259 ("amd-xgbe: Implement split header receive support")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 756cd366
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment