if (!chan->handle) {
return -ENOMEM;
}
+ /*
+ * The channel shm and wait fds are passed to ustctl, set them
+ * to -1 here.
+ */
+ chan->shm_fd = -1;
+ chan->wait_fd = -1;
return 0;
}
if (!stream->mmap_base) {
return -EINVAL;
}
+ /*
+ * The stream shm and wait fds are passed to ustctl, set them to
+ * -1 here.
+ */
+ stream->shm_fd = -1;
+ stream->wait_fd = -1;
+
return 0;
}