Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261543
b: refs/heads/master
c: 8afe911
h: refs/heads/master
i:
  261541: ae676dc
  261539: 53167eb
  261535: f100f04
v: v3
  • Loading branch information
Jesper Juhl authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 0662157 commit 3c93406
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 9b67693ccf23eb9cc57dd364f515057860a1f339
refs/heads/master: 8afe9119e25809b044d9b5afbe2fb2853a5bd10c
6 changes: 4 additions & 2 deletions trunk/drivers/media/dvb/frontends/drxd_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -909,14 +909,16 @@ static int load_firmware(struct drxd_state *state, const char *fw_name)
return -EIO;
}

state->microcode = kzalloc(fw->size, GFP_KERNEL);
state->microcode = kmalloc(fw->size, GFP_KERNEL);
if (state->microcode == NULL) {
printk(KERN_ERR "drxd: firmware load failure: nomemory\n");
release_firmware(fw);
printk(KERN_ERR "drxd: firmware load failure: no memory\n");
return -ENOMEM;
}

memcpy(state->microcode, fw->data, fw->size);
state->microcode_length = fw->size;
release_firmware(fw);
return 0;
}

Expand Down

0 comments on commit 3c93406

Please sign in to comment.