projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a786b4
)
[Bluetooth] Fix wrong put_user() from HIDP compat ioctl patch
author
Marcel Holtmann
<marcel@holtmann.org>
Sat, 17 Feb 2007 22:58:44 +0000
(23:58 +0100)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 26 Feb 2007 19:42:35 +0000
(11:42 -0800)
The compat ioctl patch copied the parser version field into the
report descriptor size field by mistake.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hidp/sock.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/hidp/sock.c
b/net/bluetooth/hidp/sock.c
index 8b8a6c1dbd9905534628f492f8d329e03d6f71ff..0c185257e55bbbe65933a57f6991930b149d2c62 100644
(file)
--- a/
net/bluetooth/hidp/sock.c
+++ b/
net/bluetooth/hidp/sock.c
@@
-194,7
+194,7
@@
static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigne
if (put_user(ca.ctrl_sock, &uca->ctrl_sock) ||
put_user(ca.intr_sock, &uca->intr_sock) ||
put_user(ca.parser, &uca->parser) ||
- put_user(ca.rd_size, &uca->
parser
) ||
+ put_user(ca.rd_size, &uca->
rd_size
) ||
put_user(compat_ptr(ca.rd_data), &uca->rd_data) ||
put_user(ca.country, &uca->country) ||
put_user(ca.subclass, &uca->subclass) ||