1 --- a/modules/linux/vmhgfs/link.c.orig 2014-04-23 10:11:34.891106441 +0100
2 +++ a/modules/linux/vmhgfs/link.c 2014-04-23 00:49:03.000000000 +0100
5 *----------------------------------------------------------------------
8 +#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 14, 99)
10 HgfsReadlink(struct dentry *dentry, // IN: Dentry containing link
11 char __user *buffer, // OUT: User buffer to copy link into
18 +HgfsReadlink(struct dentry *dentry, // IN: Dentry containing link
19 + char __user *buffer, // OUT: User buffer to copy link into
20 + int buflen) // IN: Length of user buffer
24 + char *fileName = NULL;
31 + LOG(4, (KERN_DEBUG "VMware hgfs: HgfsReadlink: null input\n"));
35 + LOG(6, (KERN_DEBUG "VMware hgfs: HgfsReadlink: calling "
36 + "HgfsPrivateGetattr\n"));
37 + error = HgfsPrivateGetattr(dentry, &attr, &fileName);
40 + /* Let's make sure we got called on a symlink. */
41 + if (attr.type != HGFS_FILE_TYPE_SYMLINK || fileName == NULL) {
42 + LOG(6, (KERN_DEBUG "VMware hgfs: HgfsReadlink: got called "
43 + "on something that wasn't a symlink\n"));
46 + LOG(6, (KERN_DEBUG "VMware hgfs: HgfsReadlink: calling "
47 + "readlink_copy\n"));
48 + error = readlink_copy(buffer, buflen, fileName);
55 --- open-vm-tools-9.4.0-1280544/modules/linux/vmblock/linux/inode.c~ 2014-07-12 12:00:49.000000000 +0200
56 +++ open-vm-tools-9.4.0-1280544/modules/linux/vmblock/linux/inode.c 2014-07-12 12:36:59.427802346 +0200
61 +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0)
62 return vfs_readlink(dentry, buffer, buflen, iinfo->name);
64 + return readlink_copy(buffer, buflen, iinfo->name);
69 --- open-vm-tools-9.4.0-1280544/modules/linux/vsock/linux/notify.c 2014-04-14 23:36:15.779380482 +0200
70 +++ open-vm-tools-9.4.0-1280544/modules/linux/vsock/linux/notify.c.new 2014-04-14 23:36:41.396381914 +0200
72 PKT_FIELD(vsk, sentWaitingRead) = FALSE;
75 +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0)
76 sk->sk_data_ready(sk, 0);
78 + sk->sk_data_ready(sk);
83 --- open-vm-tools-9.4.0-1280544/modules/linux/vsock/linux/notifyQState.c 2013-10-18 19:56:12.000000000 +0200
84 +++ open-vm-tools-9.4.0-1280544/modules/linux/vsock/linux/notifyQState.c.new 2014-04-14 23:37:53.316385936 +0200
86 struct sockaddr_vm *dst, // IN: unused
87 struct sockaddr_vm *src) // IN: unused
89 +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0)
90 sk->sk_data_ready(sk, 0);
92 + sk->sk_data_ready(sk);
100 /* See the comment in VSockVmciNotifyPktSendPostEnqueue */
102 +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0)
103 sk->sk_data_ready(sk, 0);
105 + sk->sk_data_ready(sk);