Initialize the mutex before using it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25830 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e109130a10
commit
a92156e1cf
@ -226,6 +226,8 @@ init_driver()
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
|
||||
mutex_init(&sDriverLock, "usb hid driver lock");
|
||||
|
||||
static usb_notify_hooks notifyHooks = {
|
||||
&usb_hid_device_added,
|
||||
&usb_hid_device_removed
|
||||
@ -250,6 +252,7 @@ uninit_driver()
|
||||
put_module(B_USB_MODULE_NAME);
|
||||
delete gDeviceList;
|
||||
gDeviceList = NULL;
|
||||
mutex_destroy(&sDriverLock);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user