Browse Source

Bugfix: thread_shutdown shouldn't try to free the device, since it's needed afterward

nfactor-troky
Luke Dashjr 13 years ago committed by Con Kolivas
parent
commit
124ee9b28a
  1. 17
      driver-icarus.c

17
driver-icarus.c

@ -398,21 +398,8 @@ static uint64_t icarus_scanhash(struct thr_info *thr, struct work *work,
static void icarus_shutdown(struct thr_info *thr) static void icarus_shutdown(struct thr_info *thr)
{ {
struct cgpu_info *icarus; struct cgpu_info *icarus = thr->cgpu;
icarus_close(icarus->device_fd);
if (thr->cgpu) {
icarus = thr->cgpu;
if (icarus->device_path)
free(icarus->device_path);
close(icarus->device_fd);
devices[icarus->device_id] = NULL;
free(icarus);
thr->cgpu = NULL;
}
} }
struct device_api icarus_api = { struct device_api icarus_api = {

Loading…
Cancel
Save