[media] DVB: dvb_frontend: off by one in dtv_property_dump()
If the tvp->cmd == DTV_MAX_COMMAND then we read past the end of the array. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
0cf8af57f1
commit
bca3ba7904
1 changed files with 1 additions and 1 deletions
|
@ -982,7 +982,7 @@ static void dtv_property_dump(struct dtv_property *tvp)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (tvp->cmd <= 0 || tvp->cmd > DTV_MAX_COMMAND) {
|
||||
if (tvp->cmd <= 0 || tvp->cmd >= DTV_MAX_COMMAND) {
|
||||
printk(KERN_WARNING "%s: tvp.cmd = 0x%08x undefined\n",
|
||||
__func__, tvp->cmd);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue