Merge "apr: fix race condition in apr reset"

This commit is contained in:
Linux Build Service Account 2018-08-16 20:43:36 -07:00 committed by Gerrit - the friendly Code Review server
commit b9975a040e

View file

@ -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;