Browse Source

Merge commit '0c89803' into bfgminer-4.7.x

Luke Dashjr 11 years ago
parent
commit
25b4059535
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-nanofury.c

+ 2 - 0
driver-nanofury.c

@@ -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)