page fault in ugenpoll()

Hans Petter Selasky hselasky at c2i.net
Fri May 20 13:16:30 GMT 2005


On Friday 20 May 2005 02:29, Dirk GOUDERS wrote:
> Hello,
>
> just for completeness, I want to provide a simple program that causes
> a kernel panic when invoked with the argument /dev/ugen0:

The control endpoint /dev/ugen0 does not support polling. But 
polling /dev/ugen0.X should work, where "X" is a number.

"ugenpoll()" in "/sys/dev/usb/ugen.c" should have something like this added:

if(control endpoint) return POLLNVAL; /* and not "return EIO;" */

Please file a PR on this issue using:

>Category:      usb

--HPS


More information about the freebsd-hackers mailing list