Merge "apr: fix race condition in apr reset"
This commit is contained in:
commit
b9975a040e
1 changed files with 1 additions and 0 deletions
|
@ -543,6 +543,7 @@ struct apr_svc *apr_register(char *dest, char *svc_name, apr_fn svc_fn,
|
|||
if (svc->need_reset) {
|
||||
mutex_unlock(&svc->m_lock);
|
||||
pr_err("APR: Service needs reset\n");
|
||||
svc = NULL;
|
||||
goto done;
|
||||
}
|
||||
svc->id = svc_id;
|
||||
|
|
Loading…
Add table
Reference in a new issue