Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261507
b: refs/heads/master
c: bcd2ebb
h: refs/heads/master
i:
  261505: 1ed8925
  261503: 884d53e
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 8ff71ed commit eabd93c
Show file tree
Hide file tree
Showing 2 changed files with 7 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: e076c92ed6908b0a06ea0d419606a59cae7febe6
refs/heads/master: bcd2ebb76039bf4b1d1cb9f9f0e182548578e692
6 changes: 6 additions & 0 deletions trunk/drivers/media/dvb/frontends/drxk_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,12 @@ static int DownloadMicrocode(struct drxk_state *state,
BlockCRC = (pSrc[0] << 8) | pSrc[1];
pSrc += sizeof(u16);
offset += sizeof(u16);

if (offset + BlockSize > Length) {
printk(KERN_ERR "drxk: Firmware is corrupted.\n");
return -EINVAL;
}

status = write_block(state, Address, BlockSize, pSrc);
if (status < 0)
break;
Expand Down

0 comments on commit eabd93c

Please sign in to comment.