X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sound%2Fcore%2Fpcm_native.c;h=71ae86ca64ac3b696121c66cbc7b334bc03cb3f3;hb=496ad9aa8ef448058e36ca7a787c61f2e63f0f54;hp=09b4286c65f9d7d6e7ab8abed498ad2d7f96e737;hpb=57eccb830f1cc93d4b506ba306d8dfa685e0c88f;p=deliverable%2Flinux.git diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 09b4286c65f9..71ae86ca64ac 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -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);