]> err.no Git - linux-2.6/commit
[Bluetooth] Fix compat ioctl for BNEP, CMTP and HIDP
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 15 Oct 2006 15:30:22 +0000 (17:30 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 16 Oct 2006 06:14:27 +0000 (23:14 -0700)
commite9c5702e3c5558dade169949abd730173e87ef9c
tree58ec8dcd1497b51e1d6a447d8c4a34a0bd2f108d
parent39c850863d5e36e72ecf9bc3537ec717bcce97fd
[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>
net/bluetooth/bnep/sock.c
net/bluetooth/cmtp/sock.c
net/bluetooth/hidp/sock.c