aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-02-17 17:58:44 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-02-26 14:42:35 -0500
commita83d6c0de8811d7bcc4eb67ed199d1120ca6cad8 (patch)
tree41f648d5e9da2f9c99c94f36e306fe126c818bfd /net
parent2a786b452eba900324c29a8fcf5c96d5b1c01000 (diff)
[Bluetooth] Fix wrong put_user() from HIDP compat ioctl patch
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>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hidp/sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hidp/sock.c b/net/bluetooth/hidp/sock.c
index 8b8a6c1dbd99..0c185257e55b 100644
--- 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
194 if (put_user(ca.ctrl_sock, &uca->ctrl_sock) || 194 if (put_user(ca.ctrl_sock, &uca->ctrl_sock) ||
195 put_user(ca.intr_sock, &uca->intr_sock) || 195 put_user(ca.intr_sock, &uca->intr_sock) ||
196 put_user(ca.parser, &uca->parser) || 196 put_user(ca.parser, &uca->parser) ||
197 put_user(ca.rd_size, &uca->parser) || 197 put_user(ca.rd_size, &uca->rd_size) ||
198 put_user(compat_ptr(ca.rd_data), &uca->rd_data) || 198 put_user(compat_ptr(ca.rd_data), &uca->rd_data) ||
199 put_user(ca.country, &uca->country) || 199 put_user(ca.country, &uca->country) ||
200 put_user(ca.subclass, &uca->subclass) || 200 put_user(ca.subclass, &uca->subclass) ||