linux: hotplug_enumerate and _disconnect take active_contexts_lock
authorHans de Goede <hdegoede@redhat.com>
Thu, 16 May 2013 14:56:40 +0000 (16:56 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 16 May 2013 15:18:33 +0000 (17:18 +0200)
commit9f679a9c9abc430614f9d6654c40bee9c64c84be
tree97933f81dadd6dda2aa9dcc6e8b0d02da9b6b7a4
parent2d08a3e6da873cab069780f7e6c478299afe759a
linux: hotplug_enumerate and _disconnect take active_contexts_lock

Take the active_contexts_lock when enumerating over active_contexts.

Note that the active_contexts_lock is taken *before* the hotplug lock, as they
are taken in the same order in the libusb_init path.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/os/linux_usbfs.c
libusb/version_nano.h