dmaengine: pch_dma: fix memory leak on failure path in pch_dma_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 10 Apr 2015 22:28:41 +0000 (01:28 +0300)
committerVinod Koul <vinod.koul@intel.com>
Fri, 17 Apr 2015 18:11:46 +0000 (23:41 +0530)
commit12d7b7a23694b4d3dba58d7ae971ee9120a617e5
tree2bdfe5cca816d5bad767089d4047fa7cf623dfae
parent0434a23198d6a271b70b75221c7568e60482c04e
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>
drivers/dma/pch_dma.c