mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
[PATCH] struct path: convert nbd
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:
parent
e9536ae720
commit
17506041de
@ -537,7 +537,7 @@ static int nbd_ioctl(struct inode *inode, struct file *file,
|
||||
error = -EINVAL;
|
||||
file = fget(arg);
|
||||
if (file) {
|
||||
inode = file->f_dentry->d_inode;
|
||||
inode = file->f_path.dentry->d_inode;
|
||||
if (S_ISSOCK(inode->i_mode)) {
|
||||
lo->file = file;
|
||||
lo->sock = SOCKET_I(inode);
|
||||
|
Loading…
Reference in New Issue
Block a user