aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2015-04-10 18:28:41 -0400
committerVinod Koul <vinod.koul@intel.com>2015-04-17 14:11:46 -0400
commit12d7b7a23694b4d3dba58d7ae971ee9120a617e5 (patch)
tree2bdfe5cca816d5bad767089d4047fa7cf623dfae /drivers/dma
parent0434a23198d6a271b70b75221c7568e60482c04e (diff)
dmaengine: pch_dma: fix memory leak on failure path in pch_dma_probe()
Memory allocated for pch_dma is not deallocated in case of failure in pch_dma_probe(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/pch_dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c
index 35c143cb88da..b859792dde95 100644
--- a/drivers/dma/pch_dma.c
+++ b/drivers/dma/pch_dma.c
@@ -949,6 +949,7 @@ err_free_res:
949err_disable_pdev: 949err_disable_pdev:
950 pci_disable_device(pdev); 950 pci_disable_device(pdev);
951err_free_mem: 951err_free_mem:
952 kfree(pd);
952 return err; 953 return err;
953} 954}
954 955