struct shm_object *shmobj;
shmobj = shm_object_table_append(handle->table, shmsize);
+ if (!shmobj)
+ goto end;
align_shm(shmobj, __alignof__(struct lib_ring_buffer));
set_shmp(chanb->buf[i].shmp, zalloc_shm(shmobj, sizeof(struct lib_ring_buffer)));
buf = shmp(handle, chanb->buf[i].shmp);
struct lib_ring_buffer *buf;
shmobj = shm_object_table_append(handle->table, shmsize);
+ if (!shmobj)
+ goto end;
align_shm(shmobj, __alignof__(struct lib_ring_buffer));
set_shmp(chanb->buf[0].shmp, zalloc_shm(shmobj, sizeof(struct lib_ring_buffer)));
buf = shmp(handle, chanb->buf[0].shmp);
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;
}