svn commit: r193404 - user/kmacy/releng_7_2_fcs/sys/dev/cxgb

Kip Macy kmacy at FreeBSD.org
Wed Jun 3 21:26:38 UTC 2009


Author: kmacy
Date: Wed Jun  3 21:26:37 2009
New Revision: 193404
URL: http://svn.freebsd.org/changeset/base/193404

Log:
  don't proceed with device enabling if setup is not complete

Modified:
  user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_main.c

Modified: user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_main.c
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_main.c	Wed Jun  3 21:18:27 2009	(r193403)
+++ user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_main.c	Wed Jun  3 21:26:37 2009	(r193404)
@@ -1923,6 +1923,10 @@ cxgb_init_locked(struct port_info *p)
 	PORT_LOCK_ASSERT_OWNED(p);
 	ifp = p->ifp;
 
+	if ((sc->flags & (FULL_INIT_DONE|INTR_INIT_DONE)) ==
+	    (FULL_INIT_DONE|INTR_INIT_DONE))
+		return;
+
 	ADAPTER_LOCK(p->adapter);
 	if ((sc->open_device_map == 0) && (err = cxgb_up(sc))) {
 		ADAPTER_UNLOCK(p->adapter);


More information about the svn-src-user mailing list