Am Donnerstag, 31. Juli 2003 15:06 schrieb Bertin Philippe: > 'Llo All, > > I have a (kernel reader newbie) question : > In kernel version's 2.4.20's usb.c, function usb_get_configuration(), one > sees buffer be kmalloc'ed. Is there a reason why not to just have it > declared on the stack (as a char[8]) ? Maybe hardware alignment ? If that > last is not the case, then this kmalloc looks overkill, doesn't it ? Or is > there another good reason ?
You must not do DMA on the stack. HTH Oliver ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel