Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114105
b: refs/heads/master
c: 6068f50
h: refs/heads/master
i:
  114103: 6f1f367
v: v3
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Oct 13, 2008
1 parent d068b3d commit 7330e74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef526f4246f566370218bb6e639f7549244ca5a2
refs/heads/master: 6068f5063850984fe6c2490bc8384a7afa2728dc
4 changes: 2 additions & 2 deletions trunk/drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file,

/* Put an arbitrary limit on the number of messages that can
* be sent at once */
if (tvps->num > DTV_IOCTL_MAX_MSGS)
if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS))
return -EINVAL;

tvp = (struct dtv_property *) kmalloc(tvps->num *
Expand Down Expand Up @@ -1379,7 +1379,7 @@ static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file,

/* Put an arbitrary limit on the number of messages that can
* be sent at once */
if (tvps->num > DTV_IOCTL_MAX_MSGS)
if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS))
return -EINVAL;

tvp = (struct dtv_property *) kmalloc(tvps->num *
Expand Down

0 comments on commit 7330e74

Please sign in to comment.