Browse Source

Merge "dsp: lsm: move lsm_common deregister out of mutex_lock"

qctecmdr 5 years ago
parent
commit
111c029686
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dsp/q6lsm.c

+ 1 - 1
dsp/q6lsm.c

@@ -375,10 +375,10 @@ void q6lsm_client_free(struct lsm_client *client)
 		return;
 	}
 	apr_deregister(client->apr);
+	q6lsm_mmap_apr_dereg();
 	client->mmap_apr = NULL;
 	mutex_lock(&session_lock);
 	q6lsm_session_free(client);
-	q6lsm_mmap_apr_dereg();
 	mutex_destroy(&client->cmd_lock);
 	kfree(client);
 	client = NULL;