[Bluetooth] Fix compat ioctl for BNEP, CMTP and HIDP
commitac4d63dab8bb425f1ae037abf349090c12f16883
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 25 Jan 2007 19:34:48 +0000 (25 20:34 +0100)
committerAdrian Bunk <bunk@stusta.de>
Fri, 26 Jan 2007 19:49:22 +0000 (26 20:49 +0100)
treebfbdc372765fea14846b7c51b34e725b1a53a30a
parentecfad2cc55c3de17bc896816c49597cfacf2e3cf
[Bluetooth] Fix compat ioctl for BNEP, CMTP and HIDP

There exists no attempt do deal with the fact that a structure with
a uint32_t followed by a pointer is going to be different for 32-bit
and 64-bit userspace. Any 32-bit process trying to use it will be
failing with -EFAULT if it's lucky; suffering from having data dumped
at a random address if it's not.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/bluetooth/bnep/sock.c
net/bluetooth/cmtp/sock.c
net/bluetooth/hidp/sock.c