if (ua_sess == NULL) {
/* The malloc() failed. */
ret = -1;
- goto error;
+ goto error_rcu_unlock;
} else if (ua_sess == (void *) -1UL) {
/* The application's socket is not valid. Contiuing */
ret = -1;
if (ua_chan == NULL) {
/* Major problem here and it's maybe the tracer or malloc() */
ret = -1;
- goto error;
+ goto error_rcu_unlock;
}
}
+error_rcu_unlock:
rcu_read_unlock();
-
-error:
return ret;
}
struct ust_app_event *ua_event;
struct ust_app_ctx *ua_ctx;
- if (usess == NULL) {
- ERR("No UST session on global update. Returning");
- goto error;
- }
+ assert(usess);
DBG2("UST app global update for app sock %d for session id %d", sock,
usess->id);