Skip to content

Commit 63e6560

Browse files
committed
Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma
Pull slave-dmaengine fixes from Vinod Koul: "Here is the late fixes pull request for dmaengine while you fly back from KS. We have a new dmaengine ML hosted by vger so a patch for that along with addition of Dave as driver mainatainer for ioat. Other fixes are memeory leak fixes on edma driver, small fixes on rcar-hpbdma driver by Sergei" * 'fixes' of git://git.infradead.org/users/vkoul/slave-dma: dmaengine: edma: fix another memory leak dma: edma: Fix memory leak MAINTAINERS: add to ioatdma maintainer list MAINTAINERS: add the new dmaengine mailing list
2 parents 20582e3 + 7261828 commit 63e6560

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

MAINTAINERS

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2728,6 +2728,8 @@ T: git git://git.linaro.org/people/sumitsemwal/linux-dma-buf.git
27282728
DMA GENERIC OFFLOAD ENGINE SUBSYSTEM
27292729
M: Vinod Koul <[email protected]>
27302730
M: Dan Williams <[email protected]>
2731+
2732+
Q: https://patchwork.kernel.org/project/linux-dmaengine/list/
27312733
S: Supported
27322734
F: drivers/dma/
27332735
F: include/linux/dma*
@@ -4367,7 +4369,10 @@ F: arch/x86/kernel/microcode_intel.c
43674369

43684370
INTEL I/OAT DMA DRIVER
43694371
M: Dan Williams <[email protected]>
4370-
S: Maintained
4372+
M: Dave Jiang <[email protected]>
4373+
4374+
Q: https://patchwork.kernel.org/project/linux-dmaengine/list/
4375+
S: Supported
43714376
F: drivers/dma/ioat*
43724377

43734378
INTEL IOMMU (VT-d)

drivers/dma/edma.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
305305
edma_alloc_slot(EDMA_CTLR(echan->ch_num),
306306
EDMA_SLOT_ANY);
307307
if (echan->slot[i] < 0) {
308+
kfree(edesc);
308309
dev_err(dev, "Failed to allocate slot\n");
309310
kfree(edesc);
310311
return NULL;
@@ -346,6 +347,7 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
346347
ccnt = sg_dma_len(sg) / (acnt * bcnt);
347348
if (ccnt > (SZ_64K - 1)) {
348349
dev_err(dev, "Exceeded max SG segment size\n");
350+
kfree(edesc);
349351
return NULL;
350352
}
351353
cidx = acnt * bcnt;

0 commit comments

Comments
 (0)