diff options
Diffstat (limited to 'drivers/media/dvb/ttpci/av7110_ca.c')
-rw-r--r-- | drivers/media/dvb/ttpci/av7110_ca.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/ttpci/av7110_ca.c b/drivers/media/dvb/ttpci/av7110_ca.c index 4eba35a018e3..9fc1dd0ba4c3 100644 --- a/drivers/media/dvb/ttpci/av7110_ca.c +++ b/drivers/media/dvb/ttpci/av7110_ca.c | |||
@@ -25,7 +25,7 @@ | |||
25 | * Or, point your browser to http://www.gnu.org/copyleft/gpl.html | 25 | * Or, point your browser to http://www.gnu.org/copyleft/gpl.html |
26 | * | 26 | * |
27 | * | 27 | * |
28 | * the project's page is at http://www.linuxtv.org/dvb/ | 28 | * the project's page is at http://www.linuxtv.org/ |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <linux/kernel.h> | 31 | #include <linux/kernel.h> |
@@ -277,7 +277,7 @@ static int dvb_ca_ioctl(struct file *file, unsigned int cmd, void *parg) | |||
277 | { | 277 | { |
278 | ca_slot_info_t *info=(ca_slot_info_t *)parg; | 278 | ca_slot_info_t *info=(ca_slot_info_t *)parg; |
279 | 279 | ||
280 | if (info->num > 1) | 280 | if (info->num < 0 || info->num > 1) |
281 | return -EINVAL; | 281 | return -EINVAL; |
282 | av7110->ci_slot[info->num].num = info->num; | 282 | av7110->ci_slot[info->num].num = info->num; |
283 | av7110->ci_slot[info->num].type = FW_CI_LL_SUPPORT(av7110->arm_app) ? | 283 | av7110->ci_slot[info->num].type = FW_CI_LL_SUPPORT(av7110->arm_app) ? |
@@ -353,6 +353,7 @@ static const struct file_operations dvb_ca_fops = { | |||
353 | .open = dvb_ca_open, | 353 | .open = dvb_ca_open, |
354 | .release = dvb_generic_release, | 354 | .release = dvb_generic_release, |
355 | .poll = dvb_ca_poll, | 355 | .poll = dvb_ca_poll, |
356 | .llseek = default_llseek, | ||
356 | }; | 357 | }; |
357 | 358 | ||
358 | static struct dvb_device dvbdev_ca = { | 359 | static struct dvb_device dvbdev_ca = { |