summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-09-14 09:17:46 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-09-14 09:17:46 +0200
commite7cd79e8f08b3f9fc578bd92afc58117049774d8 (patch)
treeb728331ae5b27f56ed944ab566d1be874e9f19d3 /linux/drivers
parent18e48d2b209435d81fc598fefd3df73bcecee702 (diff)
downloadmediapointer-dvb-s2-e7cd79e8f08b3f9fc578bd92afc58117049774d8.tar.gz
mediapointer-dvb-s2-e7cd79e8f08b3f9fc578bd92afc58117049774d8.tar.bz2
gspca: Bad check of returned status in i2c_read() spca561.
From: Shane <gnome42@gmail.com> This makes auto gain functional on 04fc:0561. Priority: high Signed-off-by: Shane <gnome42@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/gspca/spca561.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/spca561.c b/linux/drivers/media/video/gspca/spca561.c
index 0250ee96d..910c550cd 100644
--- a/linux/drivers/media/video/gspca/spca561.c
+++ b/linux/drivers/media/video/gspca/spca561.c
@@ -225,7 +225,7 @@ static int i2c_read(struct gspca_dev *gspca_dev, __u16 reg, __u8 mode)
reg_w_val(gspca_dev->dev, 0x8802, (mode | 0x01));
do {
reg_r(gspca_dev, 0x8803, 1);
- if (!gspca_dev->usb_buf)
+ if (!gspca_dev->usb_buf[0])
break;
} while (--retry);
if (retry == 0)