projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c3b7d
)
[PATCH] sonypi trivial user annotations
author
Al Viro
<viro@www.linux.org.uk>
Wed, 4 May 2005 04:40:02 +0000
(
05:40
+0100)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 4 May 2005 14:33:14 +0000
(07:33 -0700)
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/sonypi.c
patch
|
blob
|
history
diff --git
a/drivers/char/sonypi.c
b/drivers/char/sonypi.c
index c812191417c36aac6190f7e94e997ca7f6c3beac..fd042060809a3b5572183f6874219d890261a09b 100644
(file)
--- a/
drivers/char/sonypi.c
+++ b/
drivers/char/sonypi.c
@@
-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: