Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357543
b: refs/heads/master
c: bf5bbed
h: refs/heads/master
i:
  357541: ad107da
  357539: bdb2e1b
  357535: 77a7004
v: v3
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Feb 8, 2013
1 parent 780c5ad commit d4a560c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3e58ac14ad2c443d86c5bed0137a010fe4d16fe2
refs/heads/master: bf5bbed15c41228ea1abbb8d3931050922bfc37f
7 changes: 7 additions & 0 deletions trunk/drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,13 @@ static void ttusb_process_muxpack(struct ttusb *ttusb, const u8 * muxpack,
{
u16 csum = 0, cc;
int i;

if (len < 4 || len & 0x1) {
pr_warn("%s: muxpack has invalid len %d\n", __func__, len);
numinvalid++;
return;
}

for (i = 0; i < len; i += 2)
csum ^= le16_to_cpup((__le16 *) (muxpack + i));
if (csum) {
Expand Down

0 comments on commit d4a560c

Please sign in to comment.