mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[PATCH] sonypi trivial user annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
56c3b7d788
commit
0555985d04
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue