Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jan 2010 01:44:30 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r202863 - head/sys/dev/cxgb
Message-ID:  <201001230144.o0N1iVed059104@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001230144.o0N1iVed059104>