aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/etoms.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/etoms.c')
-rw-r--r--drivers/media/video/gspca/etoms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c
index c03b1f45de10..9eb6adb24bd0 100644
--- a/drivers/media/video/gspca/etoms.c
+++ b/drivers/media/video/gspca/etoms.c
@@ -235,7 +235,7 @@ static void reg_r(struct gspca_dev *gspca_dev,
235 struct usb_device *dev = gspca_dev->dev; 235 struct usb_device *dev = gspca_dev->dev;
236 236
237#ifdef GSPCA_DEBUG 237#ifdef GSPCA_DEBUG
238 if (len > sizeof gspca_dev->usb_buf) { 238 if (len > USB_BUF_SZ) {
239 err("reg_r: buffer overflow"); 239 err("reg_r: buffer overflow");
240 return; 240 return;
241 } 241 }
@@ -273,7 +273,7 @@ static void reg_w(struct gspca_dev *gspca_dev,
273 struct usb_device *dev = gspca_dev->dev; 273 struct usb_device *dev = gspca_dev->dev;
274 274
275#ifdef GSPCA_DEBUG 275#ifdef GSPCA_DEBUG
276 if (len > sizeof gspca_dev->usb_buf) { 276 if (len > USB_BUF_SZ) {
277 err("reg_w: buffer overflow"); 277 err("reg_w: buffer overflow");
278 return; 278 return;
279 } 279 }