net: ll_temac: Fix iommu/swiotlb leak
authorEsben Haabendal <esben@geanix.com>
Tue, 30 Apr 2019 07:17:55 +0000 (09:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 18:33:30 +0000 (14:33 -0400)
commita8c9bd3ba84084b6cca704d5b21ee0ba971b748b
treefa6c927b9bece67c46cc39fa6bc8ebe246563da7
parentf14f5c11f051ca4a41e65017d94408e5e702ba9d
net: ll_temac: Fix iommu/swiotlb leak

Unmap the actual buffer length, not the amount of data received, avoiding
resource exhaustion of swiotlb (seen on x86_64 platform).

Signed-off-by: Esben Haabendal <esben@geanix.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_main.c