On Thu, May 23, 2013 at 05:36:53PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <[email protected]>
> 
> Fix to return a negative error code from the error handling
> case instead of 0, as done elsewhere in this function.
> 
> Signed-off-by: Wei Yongjun <[email protected]>

Acked-by: Michael S. Tsirkin <[email protected]>

> ---
>  drivers/uio/uio_pci_generic.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/uio/uio_pci_generic.c b/drivers/uio/uio_pci_generic.c
> index 077ae12..d0b508b 100644
> --- a/drivers/uio/uio_pci_generic.c
> +++ b/drivers/uio/uio_pci_generic.c
> @@ -91,7 +91,8 @@ static int probe(struct pci_dev *pdev,
>       gdev->info.handler = irqhandler;
>       gdev->pdev = pdev;
>  
> -     if (uio_register_device(&pdev->dev, &gdev->info))
> +     err = uio_register_device(&pdev->dev, &gdev->info);
> +     if (err)
>               goto err_register;
>       pci_set_drvdata(pdev, gdev);
>  
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to