diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/kernel/sys_sunos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/kernel/sys_sunos.c b/arch/sparc/kernel/sys_sunos.c index 6f3ac548ee66..0bf8c165fc92 100644 --- a/arch/sparc/kernel/sys_sunos.c +++ b/arch/sparc/kernel/sys_sunos.c | |||
@@ -94,8 +94,8 @@ asmlinkage unsigned long sunos_mmap(unsigned long addr, unsigned long len, | |||
94 | * SunOS is so stupid some times... hmph! | 94 | * SunOS is so stupid some times... hmph! |
95 | */ | 95 | */ |
96 | if (file) { | 96 | if (file) { |
97 | if (imajor(file->f_dentry->d_inode) == MEM_MAJOR && | 97 | if (imajor(file->f_path.dentry->d_inode) == MEM_MAJOR && |
98 | iminor(file->f_dentry->d_inode) == 5) { | 98 | iminor(file->f_path.dentry->d_inode) == 5) { |
99 | flags |= MAP_ANONYMOUS; | 99 | flags |= MAP_ANONYMOUS; |
100 | fput(file); | 100 | fput(file); |
101 | file = NULL; | 101 | file = NULL; |
@@ -655,7 +655,7 @@ sunos_nfs_get_server_fd (int fd, struct sockaddr_in *addr) | |||
655 | if (!file) | 655 | if (!file) |
656 | goto out; | 656 | goto out; |
657 | 657 | ||
658 | inode = file->f_dentry->d_inode; | 658 | inode = file->f_path.dentry->d_inode; |
659 | 659 | ||
660 | socket = SOCKET_I(inode); | 660 | socket = SOCKET_I(inode); |
661 | local.sin_family = AF_INET; | 661 | local.sin_family = AF_INET; |