aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/gspca/vc032x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c
index 26675236fbd2..c090efcd8045 100644
--- a/drivers/media/video/gspca/vc032x.c
+++ b/drivers/media/video/gspca/vc032x.c
@@ -3095,6 +3095,8 @@ static int sd_querymenu(struct gspca_dev *gspca_dev,
3095 3095
3096 switch (menu->id) { 3096 switch (menu->id) {
3097 case V4L2_CID_POWER_LINE_FREQUENCY: 3097 case V4L2_CID_POWER_LINE_FREQUENCY:
3098 if (menu->index >= ARRAY_SIZE(freq_nm))
3099 break;
3098 strcpy((char *) menu->name, freq_nm[menu->index]); 3100 strcpy((char *) menu->name, freq_nm[menu->index]);
3099 return 0; 3101 return 0;
3100 } 3102 }