Add missing rcu read lock
authorDavid Goulet <david.goulet@polymtl.ca>
Wed, 30 Nov 2011 22:26:00 +0000 (17:26 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Wed, 30 Nov 2011 22:26:00 +0000 (17:26 -0500)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng-sessiond/ust-app.c

index 7276cbb63755113512bfd97e69da8b945c66f0b7..12ac39404cfbbe46a483b0aa6e0659fe8d387a86 100644 (file)
@@ -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;
        }
 
This page took 0.026587 seconds and 4 git commands to generate.