--- usr/src/sys/dev/usb/uhidev.c	2013-10-05 09:05:01.000000000 +0200
+++ uhidev.c	2013-12-26 17:36:17.000000000 +0100
@@ -467,8 +467,12 @@
 	u_int rep;
 	u_int32_t cc;
 
+	if(sc->sc_ipipe == NULL && sc->sc_opipe == NULL
+		&& sc->sc_oxfer == NULL)
+			return;
+	
 	usbd_get_xfer_status(xfer, NULL, NULL, &cc, NULL);
-
+	
 #ifdef UHIDEV_DEBUG
 	if (uhidevdebug > 5) {
 		u_int32_t i;
@@ -603,6 +607,7 @@
 	DPRINTF(("uhidev_open: failed in someway"));
 	free(sc->sc_ibuf, M_USBDEV);
 	mutex_enter(&sc->sc_lock);
+	sc->sc_ibuf = NULL;
 	scd->sc_state &= ~UHIDEV_OPEN;
 	sc->sc_ipipe = NULL;
 	sc->sc_opipe = NULL;
