Commit 12d7b7a2 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Vinod Koul

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: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 0434a231
......@@ -949,6 +949,7 @@ static int pch_dma_probe(struct pci_dev *pdev,
err_disable_pdev:
pci_disable_device(pdev);
err_free_mem:
kfree(pd);
return err;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment