commit | ced455398619b480e511d93f6c9664ae99978557 | [log] [tgz] |
---|---|---|
author | Nathan Hjelm <hjelmn@google.com> | Thu Jul 08 22:43:28 2021 -0600 |
committer | Nathan Hjelm <hjelmn@google.com> | Thu Jul 08 22:45:07 2021 -0600 |
tree | e7057fadd38d05670e12f9557d529a051d49f383 | |
parent | 5781c47cbd0eb5fbbe82905ec95ffbcd6a41f368 [diff] |
darwin: fix SEGV on libusb_close after failed re-enumeration This commit fixes an issue that can occur if the user calls libusb_close after a failed attempt of libusb_reset (re-enumerate). This can lead to an attempt to dereference dpriv->device which was set to NULL during the re-enumeration. Signed-off-by: Nathan Hjelm <hjelmn@google.com>