Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2009 18:05:40 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192054 - head/sys/dev/usb
Message-ID:  <200905131805.n4DI5e3B063514@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thompsa
Date: Wed May 13 18:05:40 2009
New Revision: 192054
URL: http://svn.freebsd.org/changeset/base/192054

Log:
  Check the correct variable for IO_NDELAY.
  
  Submitted by:	Hans Petter Selasky

Modified:
  head/sys/dev/usb/usb_dev.c

Modified: head/sys/dev/usb/usb_dev.c
==============================================================================
--- head/sys/dev/usb/usb_dev.c	Wed May 13 18:04:51 2009	(r192053)
+++ head/sys/dev/usb/usb_dev.c	Wed May 13 18:05:40 2009	(r192054)
@@ -1203,7 +1203,7 @@ usb2_read(struct cdev *dev, struct uio *
 
 			(f->methods->f_start_read) (f);
 
-			if (fflags & IO_NDELAY) {
+			if (ioflag & IO_NDELAY) {
 				if (tr_data) {
 					/* return length before error */
 					break;
@@ -1326,7 +1326,7 @@ usb2_write(struct cdev *dev, struct uio 
 
 		if (m == NULL) {
 
-			if (fflags & IO_NDELAY) {
+			if (ioflag & IO_NDELAY) {
 				if (tr_data) {
 					/* return length before error */
 					break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905131805.n4DI5e3B063514>