Skip to content

Commit

Permalink
pch_dma: fix error return code in pch_dma_probe()
Browse files Browse the repository at this point in the history
Fix to return -ENODEV when no proper base address found error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Wei Yongjun authored and Vinod Koul committed Jul 22, 2013
1 parent ad81f05 commit 27abb2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/dma/pch_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@ static int pch_dma_probe(struct pci_dev *pdev,

if (!(pci_resource_flags(pdev, 1) & IORESOURCE_MEM)) {
dev_err(&pdev->dev, "Cannot find proper base address\n");
err = -ENODEV;
goto err_disable_pdev;
}

Expand Down

0 comments on commit 27abb2f

Please sign in to comment.