aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/pac7311.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/pac7311.c')
-rw-r--r--drivers/media/video/gspca/pac7311.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c
index 418d1a36beb0..26514285a844 100644
--- a/drivers/media/video/gspca/pac7311.c
+++ b/drivers/media/video/gspca/pac7311.c
@@ -474,7 +474,7 @@ static void reg_w_var(struct gspca_dev *gspca_dev,
474 reg_w_page(gspca_dev, page3_7302, sizeof page3_7302); 474 reg_w_page(gspca_dev, page3_7302, sizeof page3_7302);
475 break; 475 break;
476 default: 476 default:
477 if (len > 64) { 477 if (len > USB_BUF_SZ) {
478 PDEBUG(D_ERR|D_STREAM, 478 PDEBUG(D_ERR|D_STREAM,
479 "Incorrect variable sequence"); 479 "Incorrect variable sequence");
480 return; 480 return;