Skip to content

Commit

Permalink
[PATCH] sonypi trivial user annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed May 4, 2005
1 parent 56c3b7d commit 0555985
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/char/sonypi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1021,11 +1021,11 @@ static int sonypi_misc_ioctl(struct inode *ip, struct file *fp,
ret = -EIO;
break;
}
if (copy_to_user((u8 *)arg, &val8, sizeof(val8)))
if (copy_to_user(argp, &val8, sizeof(val8)))
ret = -EFAULT;
break;
case SONYPI_IOCSFAN:
if (copy_from_user(&val8, (u8 *)arg, sizeof(val8))) {
if (copy_from_user(&val8, argp, sizeof(val8))) {
ret = -EFAULT;
break;
}
Expand All @@ -1038,7 +1038,7 @@ static int sonypi_misc_ioctl(struct inode *ip, struct file *fp,
ret = -EIO;
break;
}
if (copy_to_user((u8 *)arg, &val8, sizeof(val8)))
if (copy_to_user(argp, &val8, sizeof(val8)))
ret = -EFAULT;
break;
default:
Expand Down

0 comments on commit 0555985

Please sign in to comment.