Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}