Thread (2 messages) flat view 2 messages, 2 authors, 2012-09-05

Re: [PATCH] ibmveth: Fix alignment of rx queue bug

From: David Miller <davem@davemloft.net>
Date: 2012-09-05 21:45:44

From: Santiago Leon <redacted>
Date: Tue, 04 Sep 2012 19:41:37 -0500
This patch fixes a bug found by Nish Aravamudan 
(https://lkml.org/lkml/2012/5/15/220) where the driver is not following
the spec (it is not aligning the rx buffer on a 16-byte boundary) and the
hypervisor aborts the registration, making the device unusable. 

The fix follows BenH's recommendation (https://lkml.org/lkml/2012/7/20/461)
to replace the kmalloc+map for a single call to dma_alloc_coherent()
because that function always aligns to a 16-byte boundary.

The stable trees will run into this bug whenever the rx buffer kmalloc call
returns something not aligned on a 16-byte boundary.

Cc: <redacted>
Signed-off-by: Santiago Leon <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help