aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ncpfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ncpfs/inode.c')
-rw-r--r--fs/ncpfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c
index 1acdad7fcec7..c41e02932542 100644
--- a/fs/ncpfs/inode.c
+++ b/fs/ncpfs/inode.c
@@ -525,7 +525,7 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent)
525 if (!ncp_filp) 525 if (!ncp_filp)
526 goto out; 526 goto out;
527 error = -ENOTSOCK; 527 error = -ENOTSOCK;
528 sock_inode = ncp_filp->f_path.dentry->d_inode; 528 sock_inode = file_inode(ncp_filp);
529 if (!S_ISSOCK(sock_inode->i_mode)) 529 if (!S_ISSOCK(sock_inode->i_mode))
530 goto out_fput; 530 goto out_fput;
531 sock = SOCKET_I(sock_inode); 531 sock = SOCKET_I(sock_inode);
@@ -564,7 +564,7 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent)
564 if (!server->info_filp) 564 if (!server->info_filp)
565 goto out_bdi; 565 goto out_bdi;
566 error = -ENOTSOCK; 566 error = -ENOTSOCK;
567 sock_inode = server->info_filp->f_path.dentry->d_inode; 567 sock_inode = file_inode(server->info_filp);
568 if (!S_ISSOCK(sock_inode->i_mode)) 568 if (!S_ISSOCK(sock_inode->i_mode))
569 goto out_fput2; 569 goto out_fput2;
570 info_sock = SOCKET_I(sock_inode); 570 info_sock = SOCKET_I(sock_inode);