Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 241929
b: refs/heads/master
c: caa687c
h: refs/heads/master
i:
  241927: 163ea61
v: v3
  • Loading branch information
Igor M. Liplianin authored and Mauro Carvalho Chehab committed Mar 21, 2011
1 parent e81cf7e commit a5152cf
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 2a66bf370c2aca617fad8dd8fe6c276d6bb1b44c
refs/heads/master: caa687c805332a384afd292e2b20e25a6282ed66
8 changes: 4 additions & 4 deletions trunk/drivers/media/dvb/frontends/ds3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static int ds3000_writeFW(struct ds3000_state *state, int reg,
struct i2c_msg msg;
u8 *buf;

buf = kmalloc(3, GFP_KERNEL);
buf = kmalloc(33, GFP_KERNEL);
if (buf == NULL) {
printk(KERN_ERR "Unable to kmalloc\n");
ret = -ENOMEM;
Expand All @@ -317,10 +317,10 @@ static int ds3000_writeFW(struct ds3000_state *state, int reg,
msg.addr = state->config->demod_address;
msg.flags = 0;
msg.buf = buf;
msg.len = 3;
msg.len = 33;

for (i = 0; i < len; i += 2) {
memcpy(buf + 1, data + i, 2);
for (i = 0; i < len; i += 32) {
memcpy(buf + 1, data + i, 32);

dprintk("%s: write reg 0x%02x, len = %d\n", __func__, reg, len);

Expand Down

0 comments on commit a5152cf

Please sign in to comment.