]> git.baikalelectronics.ru Git - kernel.git/commit
net/sonic: Use dma_mapping_error()
authorFinn Thain <fthain@telegraphics.com.au>
Wed, 30 May 2018 03:03:51 +0000 (13:03 +1000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 May 2018 18:17:33 +0000 (14:17 -0400)
commitd09a0ea4ee61c094911c9124a75fc6abe4044b02
tree6adbba9287e5e56cfef7233d72b5c64152859eb6
parent56f530162483709f286e229e9a17f35087e6f524
net/sonic: Use dma_mapping_error()

With CONFIG_DMA_API_DEBUG=y, calling sonic_open() produces the
message, "DMA-API: device driver failed to check map error".
Add the missing dma_mapping_error() call.

Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/natsemi/sonic.c