Repository navigation
Commit d90c92f
ibmveth: Fix alignment of rx queue bug
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: <stable@vger.kernel.org>
Signed-off-by: Santiago Leon <santil@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent d013ef2 commit d90c92f
1 file changed
Lines changed: 9 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
483 | 478 | | |
484 | 479 | | |
485 | 480 | | |
| |||
556 | 551 | | |
557 | 552 | | |
558 | 553 | | |
| 554 | + | |
| 555 | + | |
559 | 556 | | |
560 | 557 | | |
561 | | - | |
562 | | - | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
563 | 561 | | |
564 | 562 | | |
565 | 563 | | |
566 | 564 | | |
567 | 565 | | |
568 | 566 | | |
569 | 567 | | |
570 | | - | |
571 | | - | |
572 | 568 | | |
573 | 569 | | |
574 | 570 | | |
575 | 571 | | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | 572 | | |
580 | 573 | | |
581 | | - | |
582 | | - | |
| 574 | + | |
583 | 575 | | |
584 | 576 | | |
585 | 577 | | |
| |||
0 commit comments