diff options
Diffstat (limited to 'app-emulation/vmware-modules/files/308-4.07-01-readlink_copy.patch')
-rw-r--r-- | app-emulation/vmware-modules/files/308-4.07-01-readlink_copy.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app-emulation/vmware-modules/files/308-4.07-01-readlink_copy.patch b/app-emulation/vmware-modules/files/308-4.07-01-readlink_copy.patch new file mode 100644 index 0000000..5fccd97 --- /dev/null +++ b/app-emulation/vmware-modules/files/308-4.07-01-readlink_copy.patch @@ -0,0 +1,16 @@ +--- vmblock-only/linux/inode.c 2016-08-03 19:26:15.293707751 +0200 ++++ vmblock-only/linux/inode.c.new 2016-08-03 21:37:42.199148756 +0200 +@@ -205,10 +205,11 @@ + + #if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 14, 99) + return vfs_readlink(dentry, buffer, buflen, iinfo->name); ++#elif LINUX_VERSION_CODE <= KERNEL_VERSION(4, 6, 99) ++ return readlink_copy(buffer, buflen, iinfo->name); + #else +- return readlink_copy(buffer, buflen, iinfo->name); ++ return generic_readlink(dentry, buffer, buflen); + #endif +- + } + + |