1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

usbutils remove_in_use yet again

This commit is contained in:
Kano 2013-04-29 00:11:12 +10:00
parent d436beb7e2
commit bfdbec1d87

View File

@ -880,7 +880,8 @@ static void remove_in_use(uint8_t bus_number, uint8_t device_address)
found = true;
if (in_use_tmp == in_use_head) {
in_use_head = in_use_head->next;
in_use_head->prev = NULL;
if (in_use_head)
in_use_head->prev = NULL;
} else {
in_use_tmp->prev->next = in_use_tmp->next;
if (in_use_tmp->next)