Add missing rcu_read_unlock on error paths
[lttng-tools.git] / lttng-sessiond / ust-consumer.c
index 444ff6eeea9f6b79c1c93259890927b52a27bf28..b83fcc435f8aaf9ced379aa3fd512572b5aa502f 100644 (file)
@@ -171,6 +171,7 @@ int ust_consumer_send_session(int consumer_fd, struct ust_app_session *usess)
 
                ret = send_channel_streams(sock, uchan);
                if (ret < 0) {
 
                ret = send_channel_streams(sock, uchan);
                if (ret < 0) {
+                       rcu_read_unlock();
                        goto error;
                }
                hashtable_get_next(usess->channels, &iter);
                        goto error;
                }
                hashtable_get_next(usess->channels, &iter);
This page took 0.022956 seconds and 4 git commands to generate.