login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
October
»
4
Re: [PATCH] usb: gadget: goku_udc: Fix error path
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Sergei Shtylyov
Subject:
Re: [PATCH] usb: gadget: goku_udc: Fix error path
Date: Monday, October 4, 2010 - 3:46 am
Hello. On 03-10-2010 18:10, Rahul Ruikar wrote:
quoted text
> call put_device() when device_register() fails.
quoted text
> Signed-off-by: Rahul Ruikar<rahul.ruikar@gmail.com>
[...]
quoted text
> 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'?
quoted text
> 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 --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] usb: gadget: goku_udc: Fix error path
, Rahul Ruikar
, (Sun Oct 3, 7:10 am)
Re: [PATCH] usb: gadget: goku_udc: Fix error path
, Dan Carpenter
, (Sun Oct 3, 9:17 am)
Re: [PATCH] usb: gadget: goku_udc: Fix error path
, Sergei Shtylyov
, (Mon Oct 4, 3:46 am)
Re: [PATCH] usb: gadget: goku_udc: Fix error path
, Rahul Ruikar
, (Mon Oct 4, 3:50 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Dave Jones
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
Nick Piggin
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
linux-netdev
:
Jarek Poplawski
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Junio C Hamano
Re: [PATCH 1/2] Teach git-describe to display distances from tags.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Dan Chokola
Re: how do you "force a pull"?
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
openbsd-misc
:
Claudio Jeker
Re: Vlan Tag on Vlan Tag (l2tunneling)
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Pieter Verberne
File collision while using pkg_add
Tomas Bodzar
bsd: uvm_mapent_alloc: out of static map entries
Community First Financial
Teacher A+ Loan
git-commits-head
:
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
USB: set correct configuration in probe of ti_usb_3410_5052
Linux Kernel Mailing List
ath9k: Added get_survey callback in order to get channel noise
Colocation donated by:
Syndicate