From 3c0e59de3ea2b5d0a78644c9e7413b0eb5b5f196 Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Sat, 23 Jan 2010 01:44:30 +0000 Subject: [PATCH] Don't forget to release the adapter lock for a no-op. --- sys/dev/cxgb/cxgb_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/cxgb/cxgb_main.c b/sys/dev/cxgb/cxgb_main.c index 5e0f09c48e98..67dd07bdbb6d 100644 --- a/sys/dev/cxgb/cxgb_main.c +++ b/sys/dev/cxgb/cxgb_main.c @@ -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;