[PATCH] struct path: convert sound
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
17b75e6949
commit
7bc563239e
@@ -1604,7 +1604,7 @@ static struct file *snd_pcm_file_fd(int fd)
|
||||
file = fget(fd);
|
||||
if (!file)
|
||||
return NULL;
|
||||
inode = file->f_dentry->d_inode;
|
||||
inode = file->f_path.dentry->d_inode;
|
||||
if (!S_ISCHR(inode->i_mode) ||
|
||||
imajor(inode) != snd_major) {
|
||||
fput(file);
|
||||
|
Reference in New Issue
Block a user