|
@@ -4204,10 +4204,10 @@ pfm_check_task_exist(pfm_context_t *ctx)
|
|
do_each_thread (g, t) {
|
|
do_each_thread (g, t) {
|
|
if (t->thread.pfm_context == ctx) {
|
|
if (t->thread.pfm_context == ctx) {
|
|
ret = 0;
|
|
ret = 0;
|
|
- break;
|
|
|
|
|
|
+ goto out;
|
|
}
|
|
}
|
|
} while_each_thread (g, t);
|
|
} while_each_thread (g, t);
|
|
-
|
|
|
|
|
|
+out:
|
|
read_unlock(&tasklist_lock);
|
|
read_unlock(&tasklist_lock);
|
|
|
|
|
|
DPRINT(("pfm_check_task_exist: ret=%d ctx=%p\n", ret, ctx));
|
|
DPRINT(("pfm_check_task_exist: ret=%d ctx=%p\n", ret, ctx));
|