From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [PATCH RESEND] dm9601: don't do usb transfers of data on stack Date: Wed, 30 Jul 2008 04:48:58 -0400 Message-ID: <48902AFA.5070702@garzik.org> References: <87mykoircs.fsf@macbook.be.48ers.dk> <200807111422.56406.oliver@neukum.org> <87mykoefy4.fsf@macbook.be.48ers.dk> <200807111502.20507.david-b@pacbell.net> <87wsjp9c5n.fsf@macbook.be.48ers.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, David Brownell , Oliver Neukum , linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Peter Korsgaard Return-path: In-Reply-To: <87wsjp9c5n.fsf-uXGAPMMVk8amE9MCos8gUmSdvHPH+/yF@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org Peter Korsgaard wrote: > dm_{read,write}() were doing USB transfers of data on stack, which isn't > allowed. Fix it by kmalloc'ing a temporary buffer. > Clean up the error handling for short transfers while we're at it. > > Signed-off-by: Peter Korsgaard > Acked-by: David Brownell > --- > > Jeff, please enqueue for 2.6.27. applied -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html