diff options
author | Dan Carpenter <error27@gmail.com> | 2010-03-28 08:21:18 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 12:57:21 -0300 |
commit | f5e20c34e9c1bcf9e92f2634411bffd98511fc48 (patch) | |
tree | 5140e1cc2d739f129bd3c285ba723fdcb2a841ec /drivers/media/video/au0828 | |
parent | 6e1f4df7da6edd21a184daff023a8eef67f005dc (diff) | |
download | kernel_samsung_tuna-f5e20c34e9c1bcf9e92f2634411bffd98511fc48.zip kernel_samsung_tuna-f5e20c34e9c1bcf9e92f2634411bffd98511fc48.tar.gz kernel_samsung_tuna-f5e20c34e9c1bcf9e92f2634411bffd98511fc48.tar.bz2 |
V4L/DVB: video/au0828: off by one bug
The "AUVI_INPUT(tmp)" macro uses "tmp" as an index of an array with
AU0828_MAX_INPUT elements.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/au0828')
-rw-r--r-- | drivers/media/video/au0828/au0828-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/au0828/au0828-video.c b/drivers/media/video/au0828/au0828-video.c index 8c140c0..6615021 100644 --- a/drivers/media/video/au0828/au0828-video.c +++ b/drivers/media/video/au0828/au0828-video.c @@ -1105,7 +1105,7 @@ static int vidioc_enum_input(struct file *file, void *priv, tmp = input->index; - if (tmp > AU0828_MAX_INPUT) + if (tmp >= AU0828_MAX_INPUT) return -EINVAL; if (AUVI_INPUT(tmp).type == 0) return -EINVAL; |