PERFORCE change 156579 for review

Hans Petter Selasky hselasky at FreeBSD.org
Fri Jan 23 11:16:11 PST 2009


http://perforce.freebsd.org/chv.cgi?CH=156579

Change 156579 by hselasky at hselasky_laptop001 on 2009/01/23 19:15:18

	
	Make sure that all node refs are gone.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb2/bluetooth/ng_ubt2.c#16 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb2/bluetooth/ng_ubt2.c#16 (text+ko) ====

@@ -598,6 +598,10 @@
 		while (!(sc->sc_flags & UBT_FLAG_SHUTDOWN))
 			usb2_pause_mtx(&sc->sc_mtx, 100);
 		UBT_UNLOCK(sc);
+
+		/* Check if there is a leftover hook */
+		if (sc->sc_hook != NULL)
+			NG_NODE_UNREF(node);
 	}
 	/* Free USB transfers, if any */
 	usb2_transfer_unsetup(sc->sc_xfer, UBT_N_TRANSFER);


More information about the p4-projects mailing list