diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-03-23 16:19:59 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-04-12 15:13:51 +0530 |
commit | 07503e6aefe4a6efd777062191944a14f03b3a18 (patch) | |
tree | d85af19ad040aac2cf8189af35314d5ad867dc6f /drivers/dma/k3dma.c | |
parent | 917a3200b9f467a154999c7572af345f2470aaf4 (diff) |
dmaengine: plx_dma: add a missing put_device() on error path
Add a missing put_device(&pdev->dev) if the call to
dma_async_device_register(dma); fails.
Fixes: 905ca51e63be ("dmaengine: plx-dma: Introduce PLX DMA engine PCI driver skeleton")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Link: https://lore.kernel.org/r/YFnq/0IQzixtAbC1@mwanda
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/k3dma.c')
0 files changed, 0 insertions, 0 deletions