svn commit: r202863 - head/sys/dev/cxgb

Navdeep Parhar np at FreeBSD.org
Sat Jan 23 01:44:31 UTC 2010


Author: np
Date: Sat Jan 23 01:44:30 2010
New Revision: 202863
URL: http://svn.freebsd.org/changeset/base/202863

Log:
  Don't forget to release the adapter lock for a no-op.

Modified:
  head/sys/dev/cxgb/cxgb_main.c

Modified: head/sys/dev/cxgb/cxgb_main.c
==============================================================================
--- head/sys/dev/cxgb/cxgb_main.c	Sat Jan 23 01:25:09 2010	(r202862)
+++ head/sys/dev/cxgb/cxgb_main.c	Sat Jan 23 01:44:30 2010	(r202863)
@@ -2074,6 +2074,8 @@ fail:
 			p->if_flags = ifp->if_flags;
 		} else if (ifp->if_drv_flags & IFF_DRV_RUNNING)
 			error = cxgb_uninit_locked(p);
+		else
+			ADAPTER_UNLOCK(sc);
 
 		ADAPTER_LOCK_ASSERT_NOTOWNED(sc);
 		break;


More information about the svn-src-head mailing list