Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42406
b: refs/heads/master
c: 9374074
h: refs/heads/master
v: v3
  • Loading branch information
Dominik Brodowski committed Dec 5, 2006
1 parent d257cee commit 511e84d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 1d2c90425d5b0dcbf4a0fab2053d5087758b76a0
refs/heads/master: 9374074f9b8bfe15bd5860019d07d967507c2bb6
7 changes: 6 additions & 1 deletion trunk/drivers/pcmcia/pcmcia_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,12 @@ static int ds_ioctl(struct inode * inode, struct file * file,

err = ret = 0;

if (cmd & IOC_IN) __copy_from_user((char *)buf, uarg, size);
if (cmd & IOC_IN) {
if (__copy_from_user((char *)buf, uarg, size)) {
err = -EFAULT;
goto free_out;
}
}

switch (cmd) {
case DS_ADJUST_RESOURCE_INFO:
Expand Down

0 comments on commit 511e84d

Please sign in to comment.