]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - sound/core/info.c
new helper: file_inode(file)
[mirror_ubuntu-eoan-kernel.git] / sound / core / info.c
index 6b368d25073b154d34b8258d59b509a1ffb6c6d2..5bb97e7d325a21291f979e42d7f3dc668a3cff4d 100644 (file)
@@ -496,7 +496,7 @@ static long snd_info_entry_ioctl(struct file *file, unsigned int cmd,
 
 static int snd_info_entry_mmap(struct file *file, struct vm_area_struct *vma)
 {
-       struct inode *inode = file->f_path.dentry->d_inode;
+       struct inode *inode = file_inode(file);
        struct snd_info_private_data *data;
        struct snd_info_entry *entry;