projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66c5f3e
)
kvm: g_malloc() can't fail, bury dead error handling
author
Markus Armbruster
<armbru@redhat.com>
Wed, 4 Feb 2015 10:26:04 +0000
(11:26 +0100)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Tue, 10 Feb 2015 06:27:20 +0000
(09:27 +0300)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
kvm-all.c
patch
|
blob
|
history
diff --git
a/kvm-all.c
b/kvm-all.c
index
2f21a4e
..
05a79c2
100644
(file)
--- a/
kvm-all.c
+++ b/
kvm-all.c
@@
-2070,10
+2070,6
@@
int kvm_insert_breakpoint(CPUState *cpu, target_ulong addr,
}
bp = g_malloc(sizeof(struct kvm_sw_breakpoint));
- if (!bp) {
- return -ENOMEM;
- }
-
bp->pc = addr;
bp->use_count = 1;
err = kvm_arch_insert_sw_breakpoint(cpu, bp);