Skip to content

dma-contiguous: two bug fixes for dma_{alloc,free}_contiguous()

Nicolin Chen linux-iommu lkml 2 versions – Applied

Status from this message: applied to the dma-mapping for-linus tree.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* PATCH-1: Confine cma_align inside the if-condition.
* PATCH-1: Updated commit message to be precise for the corner case.
* PATCH-2: Added Reviewed-by from Christoph.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2dma-contiguous: do not overwrite align in dma_alloc_contiguous()kernel/dma/contiguous.c+3 -20 replies
2/2dma-contiguous: page-align the size in dma_free_contiguous()kernel/dma/contiguous.c+2 -10 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] dma-contiguous: two bug fixes for dma_{alloc,free}_contiguous()

There are two obvious bugs in these two functions. So having two patches to fix them.

Changlog
v1->v2:
* PATCH-1: Confine cma_align inside the if-condition.
* PATCH-1: Updated commit message to be precise for the corner case.
* PATCH-2: Added Reviewed-by from Christoph.

Nicolin Chen (2):
dma-contiguous: do not overwrite align in dma_alloc_contiguous()
dma-contiguous: page-align the size in dma_free_contiguous()

 kernel/dma/contiguous.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
Signature · 6 lines
2.17.1

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu