summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/t613.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-08-27 08:31:22 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-08-27 08:31:22 +0200
commit3e2fbb7877cc79071ca37c36f9c3cc8c37c64682 (patch)
tree823b1e83f9119dadfb9374c21c938b7c652469f3 /linux/drivers/media/video/gspca/t613.c
parent3f7988d619c216fb0843bd55bd56198d27fc885e (diff)
downloadmediapointer-dvb-s2-3e2fbb7877cc79071ca37c36f9c3cc8c37c64682.tar.gz
mediapointer-dvb-s2-3e2fbb7877cc79071ca37c36f9c3cc8c37c64682.tar.bz2
gspca: Have a clean kmalloc-ated buffer for USB exchanges.
From: Jean-Francois Moine <moinejf@free.fr> The USB buffer may be used for DMA and there may be a caching problem if the buffer is part of the device structure. Thanks to Alan Stern. Priority: high Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/t613.c')
-rw-r--r--linux/drivers/media/video/gspca/t613.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/t613.c b/linux/drivers/media/video/gspca/t613.c
index 36cd2ecfa..c7673661a 100644
--- a/linux/drivers/media/video/gspca/t613.c
+++ b/linux/drivers/media/video/gspca/t613.c
@@ -391,7 +391,7 @@ static void reg_w(struct gspca_dev *gspca_dev,
NULL, 0, 500);
return;
}
- if (len <= sizeof gspca_dev->usb_buf) {
+ if (len <= USB_BUF_SZ) {
memcpy(gspca_dev->usb_buf, buffer, len);
usb_control_msg(gspca_dev->dev,
usb_sndctrlpipe(gspca_dev->dev, 0),