From e5abf1bf4deccb3b4218e534ce69afd224791adc Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 30 Nov 2011 17:26:00 -0500 Subject: [PATCH] Add missing rcu read lock Signed-off-by: David Goulet --- lttng-sessiond/ust-app.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.34.1