Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97740
b: refs/heads/master
c: 3e08562
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Mauro Carvalho Chehab committed Jun 5, 2008
1 parent 8829fb0 commit e77024f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a230e55d92347e09d9ba2e97096df114b2dfaf2d
refs/heads/master: 3e085629bc921c37c1bb2e2fb6227fa14de14682
9 changes: 5 additions & 4 deletions trunk/drivers/media/dvb/ttpci/av7110.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include <linux/crc32.h>
#include <linux/i2c.h>
#include <linux/kthread.h>
#include <asm/unaligned.h>

#include <asm/system.h>

Expand Down Expand Up @@ -1461,9 +1462,9 @@ static int check_firmware(struct av7110* av7110)
ptr += 4;

/* check dpram file */
crc = ntohl(*(u32*) ptr);
crc = get_unaligned_be32(ptr);
ptr += 4;
len = ntohl(*(u32*) ptr);
len = get_unaligned_be32(ptr);
ptr += 4;
if (len >= 512) {
printk("dvb-ttpci: dpram file is way too big.\n");
Expand All @@ -1478,9 +1479,9 @@ static int check_firmware(struct av7110* av7110)
ptr += len;

/* check root file */
crc = ntohl(*(u32*) ptr);
crc = get_unaligned_be32(ptr);
ptr += 4;
len = ntohl(*(u32*) ptr);
len = get_unaligned_be32(ptr);
ptr += 4;

if (len <= 200000 || len >= 300000 ||
Expand Down

0 comments on commit e77024f

Please sign in to comment.