[media] dvb-bt8xx: Don't return -EFAULT when a device is not found
commit16d6c0b02c555b93034ffef4bf1b2d8ae80d8102
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 6 Jul 2011 12:05:41 +0000 (6 09:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:37 +0000 (27 17:53 -0300)
treefd7f4b50e8785df4be581d2d6a80c3516b80c5c3
parentc1798c90adabf16713086f34a793d89d147022a5
[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