On Tue, Apr 24, 2012 at 10:11:24AM +0300, Alexander Shishkin wrote: > On Mon, 23 Apr 2012 16:06:53 +0200, Michael Grzeschik <m.grzeschik@xxxxxxxxxxxxxx> wrote: > > Move spin_lock under the done label, so the > > lock will also be pulled in the error pathes. > > This makes sense. Do you want me to include this into my chipidea rework > patchset? Yes, please add this one to your series. > > > > Signed-off-by: Michael Grzeschik <m.grzeschik@xxxxxxxxxxxxxx> > > --- > > drivers/usb/gadget/ci13xxx_udc.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/usb/gadget/ci13xxx_udc.c b/drivers/usb/gadget/ci13xxx_udc.c > > index 9af8216..9283ab0 100644 > > --- a/drivers/usb/gadget/ci13xxx_udc.c > > +++ b/drivers/usb/gadget/ci13xxx_udc.c > > @@ -1702,9 +1702,8 @@ __acquires(udc->lock) > > if (udc->status == NULL) > > retval = -ENOMEM; > > > > - spin_lock(udc->lock); > > - > > done: > > + spin_lock(udc->lock); > > if (retval) > > err("error: %i", retval); > > } > > -- > > 1.7.10 > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-usb" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html