Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105978
b: refs/heads/master
c: f6759fd
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jul 25, 2008
1 parent 9cef30d commit e605183
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 909d145f0decbc4f17955e1fc4122a669a51fbc0
refs/heads/master: f6759fdcfd79ff1827fd5d4ddfe876164466d30d
8 changes: 5 additions & 3 deletions trunk/drivers/char/rio/rio_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static int rio_set_real_termios(void *ptr);
static void rio_hungup(void *ptr);
static void rio_close(void *ptr);
static int rio_chars_in_buffer(void *ptr);
static int rio_fw_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg);
static long rio_fw_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
static int rio_init_drivers(void);

static void my_hd(void *addr, int len);
Expand Down Expand Up @@ -240,7 +240,7 @@ static struct real_driver rio_real_driver = {

static const struct file_operations rio_fw_fops = {
.owner = THIS_MODULE,
.ioctl = rio_fw_ioctl,
.unlocked_ioctl = rio_fw_ioctl,
};

static struct miscdevice rio_fw_device = {
Expand Down Expand Up @@ -560,13 +560,15 @@ static void rio_close(void *ptr)



static int rio_fw_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg)
static long rio_fw_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
int rc = 0;
func_enter();

/* The "dev" argument isn't used. */
lock_kernel();
rc = riocontrol(p, 0, cmd, arg, capable(CAP_SYS_ADMIN));
unlock_kernel();

func_exit();
return rc;
Expand Down

0 comments on commit e605183

Please sign in to comment.