1
linux/drivers/media/dvb
Stefan Richter 686a9488cd [media] firedtv: change some -EFAULT returns to more fitting error codes
Mauro Carvalho Chehab wrote:
> I'm validating if all drivers are behaving equally with respect to the
> error codes returned to userspace, and double-checking with the API.
>
> On almost all places, -EFAULT code is used only to indicate when
> copy_from_user/copy_to_user fails. However, firedtv uses a lot of
> -EFAULT, where it seems to me that other error codes should be used
> instead (like -EIO for bus transfer errors and -EINVAL/-ERANGE for
> invalid/out of range parameters).

This concerns only the CI (CAM) related code of firedtv of which I know
little.  Let's just pass through the error returns of lower level I/O
code where applicable, and -EACCES (permission denied) when a seemingly
valid but negative FCP response or an unknown-to-firedtv CA message is
received.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: Henrik Kurelid <henrik@kurelid.se>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-07-27 17:53:38 -03:00
..
b2c2 [media] use pci_dev->revision 2011-05-20 07:26:16 -03:00
bt8xx [media] dvb-bt8xx: Don't return -EFAULT when a device is not found 2011-07-27 17:53:37 -03:00
dm1105 [media] dm1105: GPIO handling added, I2C on GPIO added, LNB control through GPIO reworked 2011-05-25 07:51:26 -03:00
dvb-core [media] DVB: dvb_frontend: fix dtv_property_dump for DTV_DVBT2_PLP_ID 2011-07-27 17:52:24 -03:00
dvb-usb [media] dvb-usb/technisat-usb2: don't use flush_scheduled_work() 2011-07-27 17:53:08 -03:00
firewire [media] firedtv: change some -EFAULT returns to more fitting error codes 2011-07-27 17:53:38 -03:00
frontends [media] nxt6000: i2c bus error should return -EIO 2011-07-27 17:53:37 -03:00
mantis [media] STV0299 Register 02 on Opera1/Bsru6/z0194a/mantis_vp1033 2011-05-20 09:29:48 -03:00
ngene Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 2011-05-04 14:22:04 -07:00
pluto2 Fix common misspellings 2011-03-31 11:26:23 -03:00
pt1 [media] Fix panic on loading earth-pt1 2011-05-20 09:29:33 -03:00
siano [media] siano: bad parameter is -EINVAL and not -EFAULT 2011-07-27 17:53:36 -03:00
ttpci [media] budget-ci: Add support for TT S-1500 with BSBE1-D01A tuner 2011-05-20 09:28:30 -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
Makefile