linux/drivers/media/dvb
Dan Carpenter e9013fb6eb [media] ddbridge: fix ddb_ioctl()
There were a several problems in this function:

1) Potential integer overflow in the comparison:
	if (fio.write_len + fio.read_len > 1028) {

2) If the user gave bogus values for write_len and read_len then
   returning -EINVAL is more appropriate than returning -ENOMEM.

3) wbuf was set to the address of an array and could never be NULL
   so I removed the pointless NULL check.

4) The call to vfree(wbuf) was improper.  That array is part of a
   larger struct and isn't allocated by itself.

5) flashio() can't actually fail, but we may as well add error
   handling in case this changes later.

6) In the default case where an ioctl is not implemented then
   returning -ENOTTY is more appropriate than returning -EFAULT.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-09-03 18:23:42 -03:00
..
b2c2 net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
bt8xx [media] dvb-bt8xx: Don't return -EFAULT when a device is not found 2011-07-27 17:53:37 -03:00
ddbridge [media] ddbridge: fix ddb_ioctl() 2011-09-03 18:23:42 -03:00
dm1105 net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
dvb-core [media] DVB: dvb_frontend: Fix compatibility criteria for satellite receivers 2011-09-03 18:07:18 -03:00
dvb-usb [media] DVB: gp8psk-fe: use SYS_TURBO 2011-09-03 18:07:20 -03:00
firewire [media] firedtv: change some -EFAULT returns to more fitting error codes 2011-07-27 17:53:38 -03:00
frontends [media] CXD2820R: Replace i2c message translation with repeater gate control 2011-09-03 18:13:41 -03:00
mantis net: remove mm.h inclusion from netdevice.h 2011-06-21 19:17:20 -07:00
ngene [media] drxk: Move I2C address into a config structure 2011-07-27 17:55:48 -03:00
pluto2 net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
pt1 [media] Fix panic on loading earth-pt1 2011-05-20 09:29:33 -03:00
siano [media] siano: apply debug flag to module level 2011-08-27 09:56:06 -03:00
ttpci [media] Add support for new revision of KNC 1 DVB-C cards. Using tda10024 instead of tda10023, which is compatible to tda10023 driver 2011-08-27 10:41:46 -03:00
ttusb-budget [media] ttusb-budget: driver has a debug param, use it 2011-05-20 09:27:38 -03:00
ttusb-dec Fix common misspellings 2011-03-31 11:26:23 -03:00
Kconfig [media] ddbridge: Allow compiling of the driver 2011-07-27 17:55:45 -03:00
Makefile [media] ddbridge: Allow compiling of the driver 2011-07-27 17:55:45 -03:00