net/sonic: Use dma_mapping_error()
authorFinn Thain <fthain@telegraphics.com.au>
Wed, 30 May 2018 03:03:51 +0000 (13:03 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jun 2018 00:08:05 +0000 (08:08 +0800)
commit1249ccd806e04a4029d1f3b37143131bfe4850ec
tree68803d015845c8132d26a94a2a30e0ab134389b2
parent2fe56703ee8463b0922734a1c94a475790de40aa
net/sonic: Use dma_mapping_error()

[ Upstream commit 26de0b76d9ba3200f09c6cb9d9618bda338be5f7 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/natsemi/sonic.c