Add missing error handling
[lttng-ust.git] / libust / ltt-ring-buffer-client.h
index 697324c799b7ea03a67a05efcb087f48518d7c86..b3e6f007115ef99a58f30e5f09463c3549a6836e 100644 (file)
@@ -381,6 +381,8 @@ struct ltt_channel *_channel_create(const char *name,
        ltt_chan->handle = channel_create(&client_config, name, ltt_chan, buf_addr,
                              subbuf_size, num_subbuf, switch_timer_interval,
                              read_timer_interval);
+       if (!ltt_chan->handle)
+               return NULL;
        ltt_chan->chan = shmp(ltt_chan->handle, ltt_chan->handle->chan);
        return ltt_chan;
 }
This page took 0.023723 seconds and 4 git commands to generate.