netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mvneta: DMA API misusage fix
@ 2013-12-05 16:35 Ezequiel Garcia
  2013-12-05 16:35 ` [PATCH] net: mvneta: Fix incorrect DMA unmapping size Ezequiel Garcia
  0 siblings, 1 reply; 3+ messages in thread
From: Ezequiel Garcia @ 2013-12-05 16:35 UTC (permalink / raw)
  To: netdev
  Cc: Thomas Petazzoni, Gregory Clement, Lior Amsalem, Willy Tarreau,
	Jason Cooper, Sebastian Hesselbarth, Andrew Lunn, David S. Miller,
	Ezequiel Garcia

This small patch removes a DMA_API_DEBUG warning, fixing a DMA API misusage.
The change is straightforward: rx DMA mappings are created setting a size
(using some upper-limit buffer size), but destroyed (aka unmapped) setting
the actual data size that was received.

The fix replaces 'data_size' by the MVNETA_RX_BUF_SIZE in the unmap.

I'm not sure how serious this misusage is, so I'd like to ask for advise
about marking this commit for stable. The problem is here since the
introduction of the driver, namely since:

  commit c5aff18204da025fdf714f8f6423372b4b8efd00
  net: mvneta: driver for Marvell Armada 370/XP network unit

Thanks!

Ezequiel Garcia (1):
  net: mvneta: Fix incorrect DMA unmapping size

 drivers/net/ethernet/marvell/mvneta.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
1.8.1.5

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-06 20:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05 16:35 [PATCH] mvneta: DMA API misusage fix Ezequiel Garcia
2013-12-05 16:35 ` [PATCH] net: mvneta: Fix incorrect DMA unmapping size Ezequiel Garcia
2013-12-06 20:44   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).