aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-02-26 23:16:07 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-26 23:16:07 -0500
commitd895cb1af15c04c522a25c79cc429076987c089b (patch)
tree895dc9157e28f603d937a58be664e4e440d5530c /sound
parent9626357371b519f2b955fef399647181034a77fe (diff)
parentd3d009cb965eae7e002ea5badf603ea8f4c34915 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs pile (part one) from Al Viro: "Assorted stuff - cleaning namei.c up a bit, fixing ->d_name/->d_parent locking violations, etc. The most visible changes here are death of FS_REVAL_DOT (replaced with "has ->d_weak_revalidate()") and a new helper getting from struct file to inode. Some bits of preparation to xattr method interface changes. Misc patches by various people sent this cycle *and* ocfs2 fixes from several cycles ago that should've been upstream right then. PS: the next vfs pile will be xattr stuff." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (46 commits) saner proc_get_inode() calling conventions proc: avoid extra pde_put() in proc_fill_super() fs: change return values from -EACCES to -EPERM fs/exec.c: make bprm_mm_init() static ocfs2/dlm: use GFP_ATOMIC inside a spin_lock ocfs2: fix possible use-after-free with AIO ocfs2: Fix oops in ocfs2_fast_symlink_readpage() code path get_empty_filp()/alloc_file() leave both ->f_pos and ->f_version zero target: writev() on single-element vector is pointless export kernel_write(), convert open-coded instances fs: encode_fh: return FILEID_INVALID if invalid fid_type kill f_vfsmnt vfs: kill FS_REVAL_DOT by adding a d_weak_revalidate dentry op nfsd: handle vfs_getattr errors in acl protocol switch vfs_getattr() to struct path default SET_PERSONALITY() in linux/elf.h ceph: prepopulate inodes only when request is aborted d_hash_and_lookup(): export, switch open-coded instances 9p: switch v9fs_set_create_acl() to inode+fid, do it before d_instantiate() 9p: split dropping the acls from v9fs_set_create_acl() ...
Diffstat (limited to 'sound')
-rw-r--r--sound/core/info.c2
-rw-r--r--sound/core/pcm_native.c2
-rw-r--r--sound/oss/msnd_pinnacle.c6
-rw-r--r--sound/oss/soundcard.c10
-rw-r--r--sound/sound_firmware.c2
5 files changed, 11 insertions, 11 deletions
diff --git a/sound/core/info.c b/sound/core/info.c
index 6b368d25073b..5bb97e7d325a 100644
--- a/sound/core/info.c
+++ b/sound/core/info.c
@@ -496,7 +496,7 @@ static long snd_info_entry_ioctl(struct file *file, unsigned int cmd,
496 496
497static int snd_info_entry_mmap(struct file *file, struct vm_area_struct *vma) 497static int snd_info_entry_mmap(struct file *file, struct vm_area_struct *vma)
498{ 498{
499 struct inode *inode = file->f_path.dentry->d_inode; 499 struct inode *inode = file_inode(file);
500 struct snd_info_private_data *data; 500 struct snd_info_private_data *data;
501 struct snd_info_entry *entry; 501 struct snd_info_entry *entry;
502 502
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)
1586 file = fget_light(fd, fput_needed); 1586 file = fget_light(fd, fput_needed);
1587 if (!file) 1587 if (!file)
1588 return NULL; 1588 return NULL;
1589 inode = file->f_path.dentry->d_inode; 1589 inode = file_inode(file);
1590 if (!S_ISCHR(inode->i_mode) || 1590 if (!S_ISCHR(inode->i_mode) ||
1591 imajor(inode) != snd_major) { 1591 imajor(inode) != snd_major) {
1592 fput_light(file, *fput_needed); 1592 fput_light(file, *fput_needed);
diff --git a/sound/oss/msnd_pinnacle.c b/sound/oss/msnd_pinnacle.c
index 536c4c0514d3..11ff7c55240c 100644
--- a/sound/oss/msnd_pinnacle.c
+++ b/sound/oss/msnd_pinnacle.c
@@ -642,7 +642,7 @@ static int mixer_ioctl(unsigned int cmd, unsigned long arg)
642 642
643static long dev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) 643static long dev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
644{ 644{
645 int minor = iminor(file->f_path.dentry->d_inode); 645 int minor = iminor(file_inode(file));
646 int ret; 646 int ret;
647 647
648 if (cmd == OSS_GETVERSION) { 648 if (cmd == OSS_GETVERSION) {
@@ -1012,7 +1012,7 @@ static int dsp_write(const char __user *buf, size_t len)
1012 1012
1013static ssize_t dev_read(struct file *file, char __user *buf, size_t count, loff_t *off) 1013static ssize_t dev_read(struct file *file, char __user *buf, size_t count, loff_t *off)
1014{ 1014{
1015 int minor = iminor(file->f_path.dentry->d_inode); 1015 int minor = iminor(file_inode(file));
1016 if (minor == dev.dsp_minor) 1016 if (minor == dev.dsp_minor)
1017 return dsp_read(buf, count); 1017 return dsp_read(buf, count);
1018 else 1018 else
@@ -1021,7 +1021,7 @@ static ssize_t dev_read(struct file *file, char __user *buf, size_t count, loff_
1021 1021
1022static ssize_t dev_write(struct file *file, const char __user *buf, size_t count, loff_t *off) 1022static ssize_t dev_write(struct file *file, const char __user *buf, size_t count, loff_t *off)
1023{ 1023{
1024 int minor = iminor(file->f_path.dentry->d_inode); 1024 int minor = iminor(file_inode(file));
1025 if (minor == dev.dsp_minor) 1025 if (minor == dev.dsp_minor)
1026 return dsp_write(buf, count); 1026 return dsp_write(buf, count);
1027 else 1027 else
diff --git a/sound/oss/soundcard.c b/sound/oss/soundcard.c
index 7c7793a0eb25..e7780349cc55 100644
--- a/sound/oss/soundcard.c
+++ b/sound/oss/soundcard.c
@@ -143,7 +143,7 @@ static int get_mixer_levels(void __user * arg)
143 143
144static ssize_t sound_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) 144static ssize_t sound_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
145{ 145{
146 int dev = iminor(file->f_path.dentry->d_inode); 146 int dev = iminor(file_inode(file));
147 int ret = -EINVAL; 147 int ret = -EINVAL;
148 148
149 /* 149 /*
@@ -176,7 +176,7 @@ static ssize_t sound_read(struct file *file, char __user *buf, size_t count, lof
176 176
177static ssize_t sound_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) 177static ssize_t sound_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
178{ 178{
179 int dev = iminor(file->f_path.dentry->d_inode); 179 int dev = iminor(file_inode(file));
180 int ret = -EINVAL; 180 int ret = -EINVAL;
181 181
182 mutex_lock(&soundcard_mutex); 182 mutex_lock(&soundcard_mutex);
@@ -333,7 +333,7 @@ static int sound_mixer_ioctl(int mixdev, unsigned int cmd, void __user *arg)
333static long sound_ioctl(struct file *file, unsigned int cmd, unsigned long arg) 333static long sound_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
334{ 334{
335 int len = 0, dtype; 335 int len = 0, dtype;
336 int dev = iminor(file->f_dentry->d_inode); 336 int dev = iminor(file_inode(file));
337 long ret = -EINVAL; 337 long ret = -EINVAL;
338 void __user *p = (void __user *)arg; 338 void __user *p = (void __user *)arg;
339 339
@@ -406,7 +406,7 @@ static long sound_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
406 406
407static unsigned int sound_poll(struct file *file, poll_table * wait) 407static unsigned int sound_poll(struct file *file, poll_table * wait)
408{ 408{
409 struct inode *inode = file->f_path.dentry->d_inode; 409 struct inode *inode = file_inode(file);
410 int dev = iminor(inode); 410 int dev = iminor(inode);
411 411
412 DEB(printk("sound_poll(dev=%d)\n", dev)); 412 DEB(printk("sound_poll(dev=%d)\n", dev));
@@ -431,7 +431,7 @@ static int sound_mmap(struct file *file, struct vm_area_struct *vma)
431 int dev_class; 431 int dev_class;
432 unsigned long size; 432 unsigned long size;
433 struct dma_buffparms *dmap = NULL; 433 struct dma_buffparms *dmap = NULL;
434 int dev = iminor(file->f_path.dentry->d_inode); 434 int dev = iminor(file_inode(file));
435 435
436 dev_class = dev & 0x0f; 436 dev_class = dev & 0x0f;
437 dev >>= 4; 437 dev >>= 4;
diff --git a/sound/sound_firmware.c b/sound/sound_firmware.c
index 37711a5d0d6b..e14903468051 100644
--- a/sound/sound_firmware.c
+++ b/sound/sound_firmware.c
@@ -19,7 +19,7 @@ static int do_mod_firmware_load(const char *fn, char **fp)
19 printk(KERN_INFO "Unable to load '%s'.\n", fn); 19 printk(KERN_INFO "Unable to load '%s'.\n", fn);
20 return 0; 20 return 0;
21 } 21 }
22 l = i_size_read(filp->f_path.dentry->d_inode); 22 l = i_size_read(file_inode(filp));
23 if (l <= 0 || l > 131072) 23 if (l <= 0 || l > 131072)
24 { 24 {
25 printk(KERN_INFO "Invalid firmware '%s'\n", fn); 25 printk(KERN_INFO "Invalid firmware '%s'\n", fn);