Module Name:    src
Committed By:   skrll
Date:           Sat Aug  2 07:18:47 UTC 2014

Modified Files:
        src/sys/rump/dev/lib/libugenhc: ugenhc.c

Log Message:
Return a valid error in rumpusb_root_intr_start on failure.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/rump/dev/lib/libugenhc/ugenhc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/dev/lib/libugenhc/ugenhc.c
diff -u src/sys/rump/dev/lib/libugenhc/ugenhc.c:1.18 src/sys/rump/dev/lib/libugenhc/ugenhc.c:1.19
--- src/sys/rump/dev/lib/libugenhc/ugenhc.c:1.18	Thu Mar 20 20:42:08 2014
+++ src/sys/rump/dev/lib/libugenhc/ugenhc.c	Sat Aug  2 07:18:47 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ugenhc.c,v 1.18 2014/03/20 20:42:08 christos Exp $	*/
+/*	$NetBSD: ugenhc.c,v 1.19 2014/08/02 07:18:47 skrll Exp $	*/
 
 /*
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ugenhc.c,v 1.18 2014/03/20 20:42:08 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ugenhc.c,v 1.19 2014/08/02 07:18:47 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -667,7 +667,7 @@ rumpusb_root_intr_start(usbd_xfer_handle
 		error = kthread_create(PRI_NONE, 0, NULL,
 		    rhscintr, sc, &sc->sc_rhintr, "ugenrhi");
 		if (error)
-			xfer->status = error;
+			xfer->status = USBD_IOERROR;
 	}
 
 	return (USBD_IN_PROGRESS);

Reply via email to