Skip to content

Commit

Permalink
dsp56k: Fix BKL pushdown
Browse files Browse the repository at this point in the history
commit 236b875 ("dsp56k: BKL pushdown")
removed the `struct inode *inode' parameter from dsp56k_ioctl(), but
forgot to update the use of `inode' in the first line of the function.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
geertu authored and torvalds committed Jul 26, 2008
1 parent 37e67b7 commit 689796a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/dsp56k.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t co
}

static long dsp56k_ioctl(struct file *file, unsigned int cmd,
unsigned long arg)
unsigned long arg)
{
int dev = iminor(inode) & 0x0f;
int dev = iminor(file->f_path.dentry->d_inode) & 0x0f;
void __user *argp = (void __user *)arg;

switch(dev)
Expand Down

0 comments on commit 689796a

Please sign in to comment.