commit | 6929b8270170a76e9af30d0a9e95c2081f4372b0 | [log] [tgz] |
---|---|---|
author | Ankur Verma <ankurv@microsoft.com> | Mon Sep 13 18:25:30 2021 -0700 |
committer | Tormod Volden <debian.tormod@gmail.com> | Thu Sep 23 10:52:11 2021 +0200 |
tree | cf00ec7ed9fe754c0cfe5bfcb8e85ead65cbd0b7 | |
parent | 7d7733a3773df271396e473252083d051a4e4f5c [diff] |
Fix segmentation fault in libusb_init() if usbi_backend.init() fails If the backend init fails, the control goes to err_io_exit which tries to clean up hotplug related lists that aren't initialized. Moving hotplug_init before makes sure the lists are valid so if backend init fails they get cleaned up without errors. Closes #989