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

This commit is contained in:
Navdeep Parhar 2010-01-23 01:44:30 +00:00
parent 8c019fbaa9
commit 3c0e59de3e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202863

View File

@ -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;