Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43615
b: refs/heads/master
c: 7bc5632
h: refs/heads/master
i:
  43613: 8e764c2
  43611: cca36df
  43607: d4f7dc2
  43599: a11e00a
  43583: 0075d49
v: v3
  • Loading branch information
Josef Sipek authored and Linus Torvalds committed Dec 8, 2006
1 parent 6d5331d commit 4ea764a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17b75e69493f655a09908045eddbb48718aef5de
refs/heads/master: 7bc563239e4c276afebd11d2e6e67ddc0cc65f0d
2 changes: 1 addition & 1 deletion trunk/sound/core/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,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_dentry->d_inode;
struct inode *inode = file->f_path.dentry->d_inode;
struct snd_info_private_data *data;
struct snd_info_entry *entry;

Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/core/pcm_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions trunk/sound/oss/dmasound/dmasound_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ static int sq_release(struct inode *inode, struct file *file)

if (file->f_mode & FMODE_WRITE) {
if (write_sq.busy)
rc = sq_fsync(file, file->f_dentry);
rc = sq_fsync(file, file->f_path.dentry);

sq_reset_output() ; /* make sure dma is stopped and all is quiet */
write_sq_release_buffers();
Expand Down Expand Up @@ -1217,7 +1217,7 @@ static int sq_ioctl(struct inode *inode, struct file *file, u_int cmd,
if ((file->f_mode & FMODE_READ) && dmasound.mach.record)
sq_reset_input() ;
if (file->f_mode & FMODE_WRITE) {
result = sq_fsync(file, file->f_dentry);
result = sq_fsync(file, file->f_path.dentry);
sq_reset_output() ;
}
/* if we are the shared resource owner then release them */
Expand Down
4 changes: 2 additions & 2 deletions trunk/sound/oss/msnd_pinnacle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ static int dsp_write(const char __user *buf, size_t len)

static ssize_t dev_read(struct file *file, char __user *buf, size_t count, loff_t *off)
{
int minor = iminor(file->f_dentry->d_inode);
int minor = iminor(file->f_path.dentry->d_inode);
if (minor == dev.dsp_minor)
return dsp_read(buf, count);
else
Expand All @@ -1016,7 +1016,7 @@ static ssize_t dev_read(struct file *file, char __user *buf, size_t count, loff_

static ssize_t dev_write(struct file *file, const char __user *buf, size_t count, loff_t *off)
{
int minor = iminor(file->f_dentry->d_inode);
int minor = iminor(file->f_path.dentry->d_inode);
if (minor == dev.dsp_minor)
return dsp_write(buf, count);
else
Expand Down
8 changes: 4 additions & 4 deletions trunk/sound/oss/soundcard.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static int get_mixer_levels(void __user * arg)

static ssize_t sound_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
{
int dev = iminor(file->f_dentry->d_inode);
int dev = iminor(file->f_path.dentry->d_inode);
int ret = -EINVAL;

/*
Expand Down Expand Up @@ -174,7 +174,7 @@ static ssize_t sound_read(struct file *file, char __user *buf, size_t count, lof

static ssize_t sound_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
{
int dev = iminor(file->f_dentry->d_inode);
int dev = iminor(file->f_path.dentry->d_inode);
int ret = -EINVAL;

lock_kernel();
Expand Down Expand Up @@ -393,7 +393,7 @@ static int sound_ioctl(struct inode *inode, struct file *file,

static unsigned int sound_poll(struct file *file, poll_table * wait)
{
struct inode *inode = file->f_dentry->d_inode;
struct inode *inode = file->f_path.dentry->d_inode;
int dev = iminor(inode);

DEB(printk("sound_poll(dev=%d)\n", dev));
Expand All @@ -418,7 +418,7 @@ static int sound_mmap(struct file *file, struct vm_area_struct *vma)
int dev_class;
unsigned long size;
struct dma_buffparms *dmap = NULL;
int dev = iminor(file->f_dentry->d_inode);
int dev = iminor(file->f_path.dentry->d_inode);

dev_class = dev & 0x0f;
dev >>= 4;
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/sound_firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ static int do_mod_firmware_load(const char *fn, char **fp)
printk(KERN_INFO "Unable to load '%s'.\n", fn);
return 0;
}
l = filp->f_dentry->d_inode->i_size;
l = filp->f_path.dentry->d_inode->i_size;
if (l <= 0 || l > 131072)
{
printk(KERN_INFO "Invalid firmware '%s'\n", fn);
Expand Down

0 comments on commit 4ea764a

Please sign in to comment.