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>
This commit is contained in:
Alexey Khoroshilov 2015-04-11 01:28:41 +03:00 committed by Vinod Koul
parent 0434a23198
commit 12d7b7a236
1 changed files with 1 additions and 0 deletions

View File

@ -949,6 +949,7 @@ err_free_res:
err_disable_pdev:
pci_disable_device(pdev);
err_free_mem:
kfree(pd);
return err;
}