Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84630
b: refs/heads/master
c: 4129a64
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Feb 8, 2008
1 parent 45c427a commit 68d086b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6df3526b6649e57a414ba6b4179655341affcf46
refs/heads/master: 4129a6454dd925560bf3f46a12eb9f01cf8d5e7e
3 changes: 3 additions & 0 deletions trunk/drivers/char/rocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,9 @@ static int reset_rm2(struct r_port *info, void __user *arg)
{
int reset;

if (!capable(CAP_SYS_ADMIN))
return -EPERM;

if (copy_from_user(&reset, arg, sizeof (int)))
return -EFAULT;
if (reset)
Expand Down

0 comments on commit 68d086b

Please sign in to comment.