aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/nbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/nbd.c')
-rw-r--r--drivers/block/nbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 043ddcca4abf..ade146bf65e5 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -625,7 +625,7 @@ static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd,
625 return -EBUSY; 625 return -EBUSY;
626 file = fget(arg); 626 file = fget(arg);
627 if (file) { 627 if (file) {
628 struct inode *inode = file->f_path.dentry->d_inode; 628 struct inode *inode = file_inode(file);
629 if (S_ISSOCK(inode->i_mode)) { 629 if (S_ISSOCK(inode->i_mode)) {
630 nbd->file = file; 630 nbd->file = file;
631 nbd->sock = SOCKET_I(inode); 631 nbd->sock = SOCKET_I(inode);