Browse Source

Merge "qcacmn: Don't destroy uncreated completion_freeq_lock"

Linux Build Service Account 5 years ago
parent
commit
b1cd82186a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hif/src/ce/ce_main.c

+ 2 - 1
hif/src/ce/ce_main.c

@@ -2799,7 +2799,8 @@ void hif_ce_stop(struct hif_softc *scn)
 
 		pipe_info = &hif_state->pipe_info[pipe_num];
 		if (pipe_info->ce_hdl) {
-			if (pipe_info->ce_hdl != ce_diag) {
+			if (pipe_info->ce_hdl != ce_diag &&
+			    hif_state->started) {
 				attr = hif_state->host_ce_config[pipe_num];
 				if (attr.src_nentries)
 					qdf_spinlock_destroy(&pipe_info->