intel_extreme: Unlock mutex after we're done, not before

* Thanks Axel for catching this one.
This commit is contained in:
Alexander von Gluck IV
2014-01-28 23:32:16 -06:00
parent eef994b964
commit fc90d9a48e
@@ -136,14 +136,14 @@ device_open(const char* name, uint32 /*flags*/, void** _cookie)
}
}
mutex_unlock(&gLock);
if (info->init_status == B_OK) {
info->open_count++;
*_cookie = info;
} else
ERROR("%s: initialization failed!\n", __func__);
mutex_unlock(&gLock);
return info->init_status;
}