destroy benaphore lock on error in init_driver()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22245 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6a571d88ac
commit
3ba665ca69
@ -590,6 +590,7 @@ init_driver()
|
||||
result = get_module(B_USB_MODULE_NAME, (module_info **)&gUSBModule);
|
||||
if (result < B_OK) {
|
||||
TRACE((DRIVER_NAME": getting module failed 0x%08lx\n", result));
|
||||
benaphore_destroy(&gDeviceListLock);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user