diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-08-27 08:31:22 +0200 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-08-27 08:31:22 +0200 |
commit | 3e2fbb7877cc79071ca37c36f9c3cc8c37c64682 (patch) | |
tree | 823b1e83f9119dadfb9374c21c938b7c652469f3 /linux/drivers/media/video/gspca/t613.c | |
parent | 3f7988d619c216fb0843bd55bd56198d27fc885e (diff) | |
download | mediapointer-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.c | 2 |
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), |