projects
/
b43-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f981680
)
b43-asm: Fix memory allocation bug.
author
Michael Buesch
<mb@bu3sch.de>
Sun, 18 May 2008 10:58:16 +0000
(12:58 +0200)
committer
Michael Buesch
<mb@bu3sch.de>
Sun, 18 May 2008 10:58:16 +0000
(12:58 +0200)
Signed-off-by: Michael Buesch <mb@bu3sch.de>
assembler/main.c
patch
|
blob
|
history
diff --git
a/assembler/main.c
b/assembler/main.c
index f2d2826aa5b2e804bf75506347d8b3b8a0f63aed..774f8f956dc5ad40ded7e40b7ba49079a43f4072 100644
(file)
--- a/
assembler/main.c
+++ b/
assembler/main.c
@@
-488,8
+488,8
@@
static unsigned int merge_external_jmp_into_opcode(struct assembler_context *ctx
/* This instruction has two fake r0 operands
* at position 0 and 1. */
- fake = xmalloc(sizeof(
struct operand
));
- fake_reg = xmalloc(sizeof(
struct operand
));
+ fake = xmalloc(sizeof(
*fake
));
+ fake_reg = xmalloc(sizeof(
*fake_reg
));
fake->type = OPER_REG;
fake->u.reg = fake_reg;
fake_reg->type = GPR;