Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198174
b: refs/heads/master
c: 9f37af6
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed May 22, 2010
1 parent 7aa81d5 commit afeadd1
Show file tree
Hide file tree
Showing 2 changed files with 16 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: 9918ff26b301e9a57f25fb12b44a46ad0c1e8f8f
refs/heads/master: 9f37af654fda88a8dcca74c785f6c20e52758866
18 changes: 15 additions & 3 deletions trunk/arch/um/drivers/harddog_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ static ssize_t harddog_write(struct file *file, const char __user *data, size_t
return 0;
}

static int harddog_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg)
static int harddog_ioctl_unlocked(struct file *file,
unsigned int cmd, unsigned long arg)
{
void __user *argp= (void __user *)arg;
static struct watchdog_info ident = {
Expand All @@ -148,10 +148,22 @@ static int harddog_ioctl(struct inode *inode, struct file *file,
}
}

static long harddog_ioctl(struct file *file,
unsigned int cmd, unsigned long arg)
{
long ret;

lock_kernel();
ret = harddog_ioctl_unlocked(file, cmd, arg);
unlock_kernel();

return ret;
}

static const struct file_operations harddog_fops = {
.owner = THIS_MODULE,
.write = harddog_write,
.ioctl = harddog_ioctl,
.unlocked_ioctl = harddog_ioctl,
.open = harddog_open,
.release = harddog_release,
};
Expand Down

0 comments on commit afeadd1

Please sign in to comment.