diff options
author | Vadim Kuznetsov <vadimk@gentoo.org> | 2012-05-22 14:03:21 +0000 |
---|---|---|
committer | Vadim Kuznetsov <vadimk@gentoo.org> | 2012-05-22 14:03:21 +0000 |
commit | 6233cd7bc642df0b93e7d4b28152e07e1258790d (patch) | |
tree | d7331682e173ecf9f3a1a5ebb48b0af283d70b32 /app-emulation/vmware-modules/files | |
parent | Stable for HPPA (bug #416209). (diff) | |
download | gentoo-2-6233cd7bc642df0b93e7d4b28152e07e1258790d.tar.gz gentoo-2-6233cd7bc642df0b93e7d4b28152e07e1258790d.tar.bz2 gentoo-2-6233cd7bc642df0b93e7d4b28152e07e1258790d.zip |
d_make_root patch for 3.4 kernel. Bug 411853.
(Portage version: 2.1.10.62/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/vmware-modules/files')
-rw-r--r-- | app-emulation/vmware-modules/files/264-d-make-root.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app-emulation/vmware-modules/files/264-d-make-root.patch b/app-emulation/vmware-modules/files/264-d-make-root.patch new file mode 100644 index 000000000000..a02e4ce0c39e --- /dev/null +++ b/app-emulation/vmware-modules/files/264-d-make-root.patch @@ -0,0 +1,16 @@ +diff --git a/vmblock-only/linux/filesystem.c b/vmblock-only/linux/filesystem.c +index b7c535e..a36a01e 100644 +--- a/vmblock-only/linux/filesystem.c ++++ b/vmblock-only/linux/filesystem.c +@@ -525,7 +525,11 @@ FsOpReadSuper(struct super_block *sb, // OUT: Superblock object + return -EINVAL; + } + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0) + rootDentry = d_alloc_root(rootInode); ++#else ++ rootDentry = d_make_root(rootInode); ++#endif + if (!rootDentry) { + iput(rootInode); + return -ENOMEM; |