diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2015-04-11 00:28:41 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-04-17 20:11:46 +0200 |
commit | 12d7b7a23694b4d3dba58d7ae971ee9120a617e5 (patch) | |
tree | 2bdfe5cca816d5bad767089d4047fa7cf623dfae /drivers/dma | |
parent | dmaengine: at_xdmac: unlock spin lock before return (diff) | |
download | linux-12d7b7a23694b4d3dba58d7ae971ee9120a617e5.tar.xz linux-12d7b7a23694b4d3dba58d7ae971ee9120a617e5.zip |
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.c | 1 |
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: err_disable_pdev: pci_disable_device(pdev); err_free_mem: + kfree(pd); return err; } |