[PATCH] struct path: convert ncpfs
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
17506041de
commit
92e5baef85
@@ -471,7 +471,7 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent)
|
||||
if (!ncp_filp)
|
||||
goto out;
|
||||
error = -ENOTSOCK;
|
||||
sock_inode = ncp_filp->f_dentry->d_inode;
|
||||
sock_inode = ncp_filp->f_path.dentry->d_inode;
|
||||
if (!S_ISSOCK(sock_inode->i_mode))
|
||||
goto out_fput;
|
||||
sock = SOCKET_I(sock_inode);
|
||||
@@ -504,7 +504,7 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent)
|
||||
if (!server->info_filp)
|
||||
goto out_fput;
|
||||
error = -ENOTSOCK;
|
||||
sock_inode = server->info_filp->f_dentry->d_inode;
|
||||
sock_inode = server->info_filp->f_path.dentry->d_inode;
|
||||
if (!S_ISSOCK(sock_inode->i_mode))
|
||||
goto out_fput2;
|
||||
info_sock = SOCKET_I(sock_inode);
|
||||
|
Reference in New Issue
Block a user