public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] dma-contiguous: two bug fixes for dma_{alloc,free}_contiguous()
@ 2019-07-26 19:34 Nicolin Chen
  2019-07-26 19:34 ` [PATCH v2 1/2] dma-contiguous: do not overwrite align in dma_alloc_contiguous() Nicolin Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nicolin Chen @ 2019-07-26 19:34 UTC (permalink / raw)
  To: dafna.hirschfeld, hch, m.szyprowski, robin.murphy; +Cc: iommu, linux-kernel

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(-)

-- 
2.17.1


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

end of thread, other threads:[~2019-07-29  6:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-26 19:34 [PATCH v2 0/2] dma-contiguous: two bug fixes for dma_{alloc,free}_contiguous() Nicolin Chen
2019-07-26 19:34 ` [PATCH v2 1/2] dma-contiguous: do not overwrite align in dma_alloc_contiguous() Nicolin Chen
2019-07-26 19:34 ` [PATCH v2 2/2] dma-contiguous: page-align the size in dma_free_contiguous() Nicolin Chen
2019-07-29  6:50 ` [PATCH v2 0/2] dma-contiguous: two bug fixes for dma_{alloc,free}_contiguous() Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox