linux/drivers/staging/bcm
Dan Carpenter eccbf04a90 Staging: bcm: use get_user() to access user pointers
This fixes some places that dereference user pointers directly instead
of using get_user().

Please especially check my changes to IOCTL_BCM_GET_CURRENT_STATUS.  The
original code modified the struct which "arg" was pointing to.  I think
this was a bug in the original code and that we only wanted to write to
the OutputBuffer. Also with the original code you could read as much
memory as you wanted so I had to put a cap on OutputLength.  The only
value of OutputLength that makes sense is sizeof(LINK_STATE) so now if
OutputLength is not sizeof(LINK_STATE) it returns -EINVAL.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-11-09 13:32:36 -08:00
..
Adapter.h Staging: bcm: make major and minor signed 2010-10-08 07:29:54 -07:00
Arp.c staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
Bcmchar.c Staging: bcm: use get_user() to access user pointers 2010-11-09 13:32:36 -08:00
Bcmnet.c Staging: bcm: fix up network device reference counting 2010-10-28 09:54:23 -07:00
CmHost.c Staging: bcm: silence off by one warning 2010-10-08 07:29:57 -07:00
CmHost.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
DDRInit.c staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
DDRInit.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
Debug.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
Debug.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
HandleControlPacket.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
HostMIBSInterface.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
HostMibs.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
IPv6Protocol.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
IPv6ProtocolHdr.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
InterfaceAdapter.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
InterfaceDld.c Staging: bcm: return -EFAULT on copy_to_user() errors 2010-10-08 07:29:56 -07:00
InterfaceIdleMode.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
InterfaceIdleMode.h staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
InterfaceInit.c Staging: bcm: remove unneeded NULL check 2010-10-08 07:29:56 -07:00
InterfaceInit.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
InterfaceIsr.c staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
InterfaceIsr.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
InterfaceMacros.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
InterfaceMisc.c staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
InterfaceMisc.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
InterfaceRx.c staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
InterfaceRx.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
InterfaceTx.c staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
InterfaceTx.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
Interfacemain.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
Ioctl.h staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
Kconfig staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
LeakyBucket.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
Macros.h Staging: bcm: mocro expansion bug 2010-10-08 07:29:55 -07:00
Makefile Staging: bcm: Makefile: replace the use of <module>-objs with <module>-y 2010-10-08 07:23:52 -07:00
Misc.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
Osal_Misc.c staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
PHSDefines.h staging/bcm: fix most build warnings 2010-10-05 08:50:15 -07:00
PHSModule.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
PHSModule.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
Protocol.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
Prototypes.h staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
Qos.c Staging: bcm: silence off by one warning 2010-10-08 07:29:57 -07:00
Queue.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
TODO staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
Transmit.c staging/bcm: fix most build warnings 2010-10-05 08:50:15 -07:00
Typedefs.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
Version.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
cntrl_SignalingInterface.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
headers.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
hostmibs.c staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
led_control.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
led_control.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
nvm.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
nvm.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
osal_misc.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
sort.c staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
target_params.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
vendorspecificextn.c staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00
vendorspecificextn.h staging: Beeceem USB Wimax driver 2010-09-08 21:15:06 -07:00