1 Jun 2009 09:56
Re: drivers for spectrometer device and ARM SAM-BA USB Bootloader
Am Montag, 1. Juni 2009 06:52:35 schrieb Александр Лясин:
> Thank you for your comments!
>
> > static ssize_t at91sam_write (struct file *file,
> > const char __user *buffer, size_t count, loff_t *ppos) {
> > int retval=0,
> > count_bytes,
> > needed_write_bytes=0;
> > char addrbuf[ADDRESS_SIZE+1],
> > lendata[ADDRESS_SIZE+1],
> >
> > DMA on the stack. On some architectures this will fail.
>
> Give me please, how should I proceed in this case? kzalloc? Then it
> will work longer
Yes, kmalloc or kzalloc will give you buffers you can pass on to usbcore.
Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
More majordomo info at http://vger.kernel.org/majordomo-info.html
RSS Feed