Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104578
b: refs/heads/master
c: 5459215
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Jul 21, 2008
1 parent 4d28f19 commit 630463b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: f1b5a7fe1718393f67fa6222a1cc27f97e12c4b3
refs/heads/master: 54592157c7120ea4d6d0014cbbfc327d4b867fe3
8 changes: 4 additions & 4 deletions trunk/drivers/usb/misc/rio500.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ static int close_rio(struct inode *inode, struct file *file)
return 0;
}

static int
ioctl_rio(struct inode *inode, struct file *file, unsigned int cmd,
unsigned long arg)
static long ioctl_rio(struct file *file, unsigned int cmd, unsigned long arg)
{
struct RioCommand rio_cmd;
struct rio_usb_data *rio = &rio_instance;
Expand All @@ -116,6 +114,7 @@ ioctl_rio(struct inode *inode, struct file *file, unsigned int cmd,
int retries;
int retval=0;

lock_kernel();
mutex_lock(&(rio->lock));
/* Sanity check to make sure rio is connected, powered, etc */
if (rio->present == 0 || rio->rio_dev == NULL) {
Expand Down Expand Up @@ -254,6 +253,7 @@ ioctl_rio(struct inode *inode, struct file *file, unsigned int cmd,

err_out:
mutex_unlock(&(rio->lock));
unlock_kernel();
return retval;
}

Expand Down Expand Up @@ -433,7 +433,7 @@ file_operations usb_rio_fops = {
.owner = THIS_MODULE,
.read = read_rio,
.write = write_rio,
.ioctl = ioctl_rio,
.unlocked_ioctl = ioctl_rio,
.open = open_rio,
.release = close_rio,
};
Expand Down

0 comments on commit 630463b

Please sign in to comment.