|
@@ -517,6 +517,8 @@ static
|
|
|
void nanofury_shutdown(struct thr_info * const thr)
|
|
void nanofury_shutdown(struct thr_info * const thr)
|
|
|
{
|
|
{
|
|
|
struct nanofury_state * const state = thr->cgpu_data;
|
|
struct nanofury_state * const state = thr->cgpu_data;
|
|
|
|
|
+ if (!state)
|
|
|
|
|
+ return;
|
|
|
struct mcp2210_device * const mcp = state->mcp;
|
|
struct mcp2210_device * const mcp = state->mcp;
|
|
|
|
|
|
|
|
if (mcp)
|
|
if (mcp)
|