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
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
cntrl_SignalingInterface.h
DDRInit.c
DDRInit.h
Debug.c
Debug.h
HandleControlPacket.c
headers.h
hostmibs.c
HostMibs.h
HostMIBSInterface.h
InterfaceAdapter.h
InterfaceDld.c Staging: bcm: return -EFAULT on copy_to_user() errors 2010-10-08 07:29:56 -07:00
InterfaceIdleMode.c
InterfaceIdleMode.h
InterfaceInit.c Staging: bcm: remove unneeded NULL check 2010-10-08 07:29:56 -07:00
InterfaceInit.h
InterfaceIsr.c
InterfaceIsr.h
InterfaceMacros.h
Interfacemain.h
InterfaceMisc.c
InterfaceMisc.h
InterfaceRx.c
InterfaceRx.h
InterfaceTx.c
InterfaceTx.h
Ioctl.h
IPv6Protocol.c
IPv6ProtocolHdr.h
Kconfig
LeakyBucket.c
led_control.c
led_control.h
Macros.h Staging: bcm: mocro expansion bug 2010-10-08 07:29:55 -07:00
Makefile
Misc.c
nvm.c
nvm.h
Osal_Misc.c
osal_misc.h
PHSDefines.h
PHSModule.c
PHSModule.h
Protocol.h
Prototypes.h
Qos.c Staging: bcm: silence off by one warning 2010-10-08 07:29:57 -07:00
Queue.h
sort.c
target_params.h
TODO
Transmit.c
Typedefs.h
vendorspecificextn.c
vendorspecificextn.h
Version.h