diff options
author | Stefan Ringel <stefan.ringel@arcor.de> | 2010-05-19 12:58:24 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-06-01 00:21:58 -0400 |
commit | 0f9bdbc2da442a78990579cabc1554446ed784a7 (patch) | |
tree | c5999f893006046b945a21a36a0471dacdaaefa6 | |
parent | 2a15ac7ad625dc22885446016d730a451df1b7d4 (diff) |
V4L/DVB: tm6000: bugfix incorrect size
Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/staging/tm6000/tm6000-video.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c index f2b7fe4a3581..2adf3cc972d3 100644 --- a/drivers/staging/tm6000/tm6000-video.c +++ b/drivers/staging/tm6000/tm6000-video.c | |||
@@ -205,7 +205,11 @@ static int copy_packet(struct urb *urb, u32 header, u8 **ptr, u8 *endp, | |||
205 | c = (header >> 24) & 0xff; | 205 | c = (header >> 24) & 0xff; |
206 | 206 | ||
207 | /* split the header fields */ | 207 | /* split the header fields */ |
208 | size = (((header & 0x7e) << 1) -1) *4; | 208 | size = ((header & 0x7e) << 1); |
209 | |||
210 | if (size > 0) | ||
211 | size -= 4; | ||
212 | |||
209 | block = (header >> 7) & 0xf; | 213 | block = (header >> 7) & 0xf; |
210 | field = (header >> 11) & 0x1; | 214 | field = (header >> 11) & 0x1; |
211 | line = (header >> 12) & 0x1ff; | 215 | line = (header >> 12) & 0x1ff; |