]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/staging/usbip/usbip_common.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[karo-tx-linux.git] / drivers / staging / usbip / usbip_common.c
index 75aa5bfcb8ddc8b7eb4c98d40542129da4a7a9bf..539fa5785afeca2cb3a06f8842e57d85c387b094 100644 (file)
@@ -411,7 +411,7 @@ struct socket *sockfd_to_socket(unsigned int sockfd)
                return NULL;
        }
 
-       inode = file->f_dentry->d_inode;
+       inode = file_inode(file);
 
        if (!inode || !S_ISSOCK(inode->i_mode)) {
                fput(file);