Re: [Patch] cp2101: remove unnecessary kcalloc
"Ben Gardner" <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Ah. That makes sense. Thanks for the feedback. Ben On 2/6/07, Alan Stern <[email protected]> wrote: > On Tue, 6 Feb 2007, Ben Gardner wrote: > > > The CP210x currently does a kcalloc() to create a temporary buffer > > that has a maximum size of 16 bytes. This patch uses the stack for the > > buffer. > > This part of the patch is incorrect. The buffer must be allocated using > kmalloc or equivalent because some architectures cannot do DMA to stack > memory. > > Alan Stern > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel