From: David Goulet Date: Wed, 30 Nov 2011 22:26:00 +0000 (-0500) Subject: Add missing rcu read lock X-Git-Tag: v2.0-pre15~48 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=e5abf1bf4deccb3b4218e534ce69afd224791adc Add missing rcu read lock Signed-off-by: David Goulet --- diff --git a/lttng-sessiond/ust-app.c b/lttng-sessiond/ust-app.c index 7276cbb63..12ac39404 100644 --- a/lttng-sessiond/ust-app.c +++ b/lttng-sessiond/ust-app.c @@ -1136,7 +1136,9 @@ int create_ust_app_event(struct ust_app_session *ua_sess, /* Create it on the tracer side */ ret = create_ust_event(app, ua_sess, ua_chan, ua_event); if (ret < 0) { + rcu_read_lock(); delete_ust_app_event(app->key.sock, ua_event); + rcu_read_unlock(); goto error; }