Hans Petter Selasky wrote:
> On Monday 10 August 2009 13:39:31 Krassimir Slavchev wrote:
>> If I try to open the device from userland with:
>> fd = open("/dev/xxx0", O_RDWR) it fails because open() tries to open the
>> device for reading first and then for writing.
> 
> There is a bug in the code. If you open using read+write flags, then the FIFO 
> open routine is called two times. The RD+WR check should be moved to the 
> ioctl 
> routine.
> 
> http://perforce.freebsd.org/chv.cgi?CH=167171

Thanks!

It seems that sys/dev/usb/storage/urio.c should be fixed too?

Best Regards

> 
> --HPS
> 
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
> 

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to