]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] dvb-bt8xx: Don't return -EFAULT when a device is not found
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 6 Jul 2011 12:05:41 +0000 (09:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 7 Jul 2011 16:43:13 +0000 (13:43 -0300)
commit69abfdc0045a6a70c58f0c8dad930397550fc82f
treefad81155ff35f47471241771308f4e44e8fde666
parentb6771ef3fdc1a7305a45e825d02e9536d3d7bfea
[media] dvb-bt8xx: Don't return -EFAULT when a device is not found

When a device (or their PCI structs) are not found, the error should
be -ENODEV. -EFAULT is reserved for errors while copying arguments
from/to userspace.

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/bt8xx/dvb-bt8xx.c