diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 7bf2cfbd6285..090796bef78f 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c | |||
@@ -537,7 +537,7 @@ static int nbd_ioctl(struct inode *inode, struct file *file, | |||
537 | error = -EINVAL; | 537 | error = -EINVAL; |
538 | file = fget(arg); | 538 | file = fget(arg); |
539 | if (file) { | 539 | if (file) { |
540 | inode = file->f_dentry->d_inode; | 540 | inode = file->f_path.dentry->d_inode; |
541 | if (S_ISSOCK(inode->i_mode)) { | 541 | if (S_ISSOCK(inode->i_mode)) { |
542 | lo->file = file; | 542 | lo->file = file; |
543 | lo->sock = SOCKET_I(inode); | 543 | lo->sock = SOCKET_I(inode); |