* GPL HEADER END
*/
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
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__
- rc = cfs_user_write(filp, (char *)payload, kuch->kuc_msglen, 0);
+ {
+ loff_t offset = 0;
+ rc = cfs_user_write(filp, (char *)payload, kuch->kuc_msglen,
+ &offset);
+ }
#endif
if (rc < 0)