[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AANLkTi=inrYar8MrwZbPsUH4NF1H7KdzdC86nrR21qz7@mail.gmail.com>
Date: Mon, 4 Oct 2010 16:20:18 +0530
From: Rahul Ruikar <rahul.ruikar@...il.com>
To: Sergei Shtylyov <sshtylyov@...sta.com>
Cc: David Brownell <dbrownell@...rs.sourceforge.net>,
Greg Kroah-Hartman <gregkh@...e.de>,
Dan Carpenter <error27@...il.com>, nm127@...email.hu,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] usb: gadget: goku_udc: Fix error path
Sergei,
Please ignore this particular patch.. I resubmitted this in another mail
Thanks,
- Rahul Ruikar
On 4 October 2010 16:16, Sergei Shtylyov <sshtylyov@...sta.com> wrote:
> Hello.
>
> On 03-10-2010 18:10, Rahul Ruikar wrote:
>
>> call put_device() when device_register() fails.
>
>> Signed-off-by: Rahul Ruikar<rahul.ruikar@...il.com>
>
> [...]
>>
>> diff --git a/drivers/usb/gadget/goku_udc.c b/drivers/usb/gadget/goku_udc.c
>> index 1088d08..080779b 100644
>> --- a/drivers/usb/gadget/goku_udc.c
>> +++ b/drivers/usb/gadget/goku_udc.c
>> @@ -1847,8 +1847,13 @@ static int goku_probe(struct pci_dev *pdev, const
>> struct pci_device_id *id)
>> /* done */
>> the_controller = dev;
>> retval = device_register(&dev->gadget.dev);
>> - if (retval == 0)
>> + if (retval != 0) {
>> + dev_reg_status = 2;
>> + goto done;
>> + } else {
>> + dev_reg_status = 1;
>
> Did you mean 'dev->dev_reg_status'?
>
>> return 0;
>> + }
>>
>> done:
>> if (dev)
>> diff --git a/drivers/usb/gadget/goku_udc.h b/drivers/usb/gadget/goku_udc.h
>> index 566cb23..c27b9e2 100644
>> --- a/drivers/usb/gadget/goku_udc.h
>> +++ b/drivers/usb/gadget/goku_udc.h
>> @@ -251,7 +251,8 @@ struct goku_udc {
>> got_region:1,
>> req_config:1,
>> configured:1,
>> - enabled:1;
>> + enabled:1,
>> + dev_reg_status:2;
>
> I don't see where this new field is read in your patch...
>
> WBR, Sergei
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists