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:
Jérôme Duval 2007-09-18 19:25:59 +00:00
parent 6a571d88ac
commit 3ba665ca69
1 changed files with 1 additions and 0 deletions

View File

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