From: Florian Fainelli Date: Thu, 15 May 2014 21:33:52 +0000 (-0700) Subject: net: systemport: fix dma_unmap_single() len X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~208^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1ff53e9fd26a11ede97fcad5ff2e9be00b61bf8;p=pandora-kernel.git net: systemport: fix dma_unmap_single() len dma_unmap_single() was called with dma_unmap_len(cb, dma_len), unfortunately we failed to assign this length field in bcm_sysport_rx_refill() or bcm_sysport_alloc_rx_bufs() using dma_unmap_len_set(). This causes packet contents corruption because are we not invoking the cache invalidation routines with the proper length. Fix this by using the full RX buffer size (RX_BUF_LENGTH) because the mappings for the RX bufers are created with that size. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed