Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95161
b: refs/heads/master
c: 3736113
h: refs/heads/master
i:
  95159: 7770274
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Apr 30, 2008
1 parent 5d879f4 commit 6f915ff
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 1eac494738a0447ef0c423ee2066f85a44ab59f5
refs/heads/master: 3736113654165b5f4b8658b6a34d74631e0b7d81
6 changes: 6 additions & 0 deletions trunk/drivers/char/istallion.c
Original file line number Diff line number Diff line change
Expand Up @@ -4433,6 +4433,8 @@ static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, un
done = 0;
rc = 0;

lock_kernel();

switch (cmd) {
case COM_GETPORTSTATS:
rc = stli_getportstats(NULL, argp);
Expand All @@ -4455,6 +4457,7 @@ static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, un
done++;
break;
}
unlock_kernel();

if (done)
return rc;
Expand All @@ -4472,6 +4475,8 @@ static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, un
if (brdp->state == 0)
return -ENODEV;

lock_kernel();

switch (cmd) {
case STL_BINTR:
EBRDINTR(brdp);
Expand All @@ -4494,6 +4499,7 @@ static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, un
rc = -ENOIOCTLCMD;
break;
}
unlock_kernel();
return rc;
}

Expand Down

0 comments on commit 6f915ff

Please sign in to comment.