]> Pileus Git - ~andy/linux/blobdiff - drivers/block/nbd.c
[MTD] [MAPS] dilnetpc: Fix printk warning
[~andy/linux] / drivers / block / nbd.c
index 7bf2cfbd6285254009febcf809d4926846ec42e6..090796bef78f16374f8c94f2bf70e23e602deabd 100644 (file)
@@ -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);