ソースを参照

Merge "securemsm-kernel: smcinvoke: Decrement the server object ref count in mutex context"

QCTECMDR Service 7 ヶ月 前
コミット
7b4afec1e5
1 ファイル変更4 行追加1 行削除
  1. 4 1
      smcinvoke/smcinvoke.c

+ 4 - 1
smcinvoke/smcinvoke.c

@@ -2750,8 +2750,11 @@ start_waiting_for_requests:
 		}
 	} while (!cb_txn);
 out:
-	if (server_info)
+	if (server_info) {
+		mutex_lock(&g_smcinvoke_lock);
 		kref_put(&server_info->ref_cnt, destroy_cb_server);
+		mutex_unlock(&g_smcinvoke_lock);
+	}
 
 	if (ret && ret != -ERESTARTSYS)
 		pr_err("accept thread returning with ret: %d\n", ret);