new helper: file_inode(file)
[deliverable/linux.git] / sound / core / pcm_native.c
index 09b4286c65f9d7d6e7ab8abed498ad2d7f96e737..71ae86ca64ac3b696121c66cbc7b334bc03cb3f3 100644 (file)
@@ -1586,7 +1586,7 @@ static struct file *snd_pcm_file_fd(int fd, int *fput_needed)
        file = fget_light(fd, fput_needed);
        if (!file)
                return NULL;
-       inode = file->f_path.dentry->d_inode;
+       inode = file_inode(file);
        if (!S_ISCHR(inode->i_mode) ||
            imajor(inode) != snd_major) {
                fput_light(file, *fput_needed);
This page took 0.023803 seconds and 5 git commands to generate.