Re: [PATCH] dmaengine: plx_dma: add a missing put_device() on error path

2021-04-12 Thread Vinod Koul
On 23-03-21, 16:19, Dan Carpenter wrote: > Add a missing put_device(&pdev->dev) if the call to > dma_async_device_register(dma); fails. Applied, thanks -- ~Vinod

Re: [PATCH] dmaengine: plx_dma: add a missing put_device() on error path

2021-03-23 Thread Logan Gunthorpe
On 2021-03-23 7:19 a.m., Dan Carpenter wrote: > 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 Good catch. Thanks Dan!

[PATCH] dmaengine: plx_dma: add a missing put_device() on error path

2021-03-23 Thread Dan Carpenter
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 --- drivers/dma/plx_dma.c | 18 +++--- 1 file changed, 11 insertions(+), 7