On 7/20/06, Alan Stern <[EMAIL PROTECTED]> wrote: > Ah yes, that would do it. In fact, the correct approach is to make > dBuffer dynamic, not stack-based. That is, you should use kmalloc() to > allocate the buffer space.
Yeah, indeed. Here we go: ------------------------------------------- __u8 *dBuffer; dBuffer = (__u8 *)kmalloc( MAX_INTEL_HEX_RECORD_LENGTH, GFP_KERNEL ); ... ... kfree( dBuffer ); ------------------------------------------ That did the trick. > You've got another mistake in the last argument. The timeout value should > be specified in milliseconds, not in jiffies. Oh, yeah I see, thanks. Kris ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users