From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp117.sbc.mail.sp1.yahoo.com (smtp117.sbc.mail.sp1.yahoo.com [69.147.64.90]) by ozlabs.org (Postfix) with SMTP id 11FBEDDDF0 for ; Wed, 19 Nov 2008 09:13:33 +1100 (EST) From: David Brownell To: avorontsov@ru.mvista.com Subject: Re: [PATCH 2/6 v2] usb/fsl_qe_udc: Fix recursive locking bug in ch9getstatus() Date: Tue, 18 Nov 2008 14:13:30 -0800 References: <20081111160153.GA12783@oksana.dev.rtsoft.ru> <200811171759.42674.david-b@pacbell.net> <20081118175127.GA29920@oksana.dev.rtsoft.ru> In-Reply-To: <20081118175127.GA29920@oksana.dev.rtsoft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200811181413.30552.david-b@pacbell.net> Cc: Greg Kroah-Hartman , Li Yang , linux-usb@vger.kernel.org, linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tuesday 18 November 2008, Anton Vorontsov wrote: > +       spin_lock_irqsave(&udc->lock, flags); > +       ret = __qe_ep_queue(_ep, _req, gfp_flags); > +       spin_unlock_irqrestore(&udc->lock, flags); Why are you passing "gfp_flags"? Especially without checking ... GFP_KERNEL will be illegal, for example.