if (pipe(pfd) < 0)
return -errno;
+ memset(link, 0, sizeof(*link));
link->lk_rfd = pfd[0];
link->lk_wfd = pfd[1];
link->lk_group = group;
* Allocates memory, returns handle
*
* @param link Private descriptor for pipe/socket.
- * @param buf Buffer to read into
+ * @param buf Buffer to read into, must include size for kuc_hdr
* @param maxsize Maximum message size allowed
* @param transport Only listen to messages on this transport
* (and the generic transport)
#ifdef __KERNEL__
{
loff_t offset = 0;
- rc = cfs_user_write(filp, (char *)payload, kuch->kuc_msglen,
+ rc = cfs_user_write(filp, (char *)payload, kuch->kuc_msglen,
&offset);
}
#endif