Re: drivers for spectrometer device and ARM SAM-BA USB Bootloader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux