diff options
author | Drew Richardson <drew.richardson@arm.com> | 2012-05-15 12:00:00 -0700 |
---|---|---|
committer | Drew Richardson <drew.richardson@arm.com> | 2014-12-19 15:27:22 -0800 |
commit | 3abe11d177c6c93fab66d04fd42d11452a0c508e (patch) | |
tree | 9ddc541993bd0859f27bf7468e44b5155e5a0494 /driver/gator_fs.c | |
parent | 3de04f9cecf0d50e895f9fe0164ecbbbae997319 (diff) |
gator: Version 5.105.10
Signed-off-by: Drew Richardson <drew.richardson@arm.com>
Diffstat (limited to 'driver/gator_fs.c')
-rw-r--r-- | driver/gator_fs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/driver/gator_fs.c b/driver/gator_fs.c index 8277c3a..39adfbe 100644 --- a/driver/gator_fs.c +++ b/driver/gator_fs.c @@ -233,9 +233,17 @@ static int gatorfs_fill_super(struct super_block *sb, void *data, int silent) return -ENOMEM; root_inode->i_op = &simple_dir_inode_operations; root_inode->i_fop = &simple_dir_operations; + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0) root_dentry = d_alloc_root(root_inode); +#else + root_dentry = d_make_root(root_inode); +#endif + if (!root_dentry) { +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0) iput(root_inode); +#endif return -ENOMEM; } |