Mahlzeit

I am currently testing the cyberJack driver under 2.6.0-test9 and
get following message:

Debug: sleeping function called from invalid context at include/asm/uaccess.h:498
in_atomic():0, irqs_disabled():1
c011b3c1: __might_sleep+0x91/0xb0
c783c67f: cyberjack_write+0x3df/0x4d0
c784b501: serial_write+0xa1/0x100
...

I suspect, that this might_sleep is the one called in copy_from_user().
Is the problem, that this is called inside a spin_lock_irqsave-section?
Do I have to use a local buffer in cyberjack_write, then call the
copy_from_user and the start the spin_lock_irqsave-section to copy it
into the private data structure?


Thanks
endergone Zwiebeltuete



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to