From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6267] Fix segfault
Date: Sat, 10 Jan 2009 14:38:01 +0000 [thread overview]
Message-ID: <E1LLeyP-0005DF-Mi@cvs.savannah.gnu.org> (raw)
Revision: 6267
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6267
Author: blueswir1
Date: 2009-01-10 14:38:00 +0000 (Sat, 10 Jan 2009)
Log Message:
-----------
Fix segfault
Modified Paths:
--------------
trunk/hw/sun4m.c
Modified: trunk/hw/sun4m.c
===================================================================
--- trunk/hw/sun4m.c 2009-01-10 11:33:32 UTC (rev 6266)
+++ trunk/hw/sun4m.c 2009-01-10 14:38:00 UTC (rev 6267)
@@ -533,8 +533,9 @@
tcx_init(ds, hwdef->tcx_base, phys_ram_base + tcx_offset, tcx_offset,
hwdef->vram_size, graphic_width, graphic_height, graphic_depth);
- if (nd_table[0].model == NULL
- || strcmp(nd_table[0].model, "lance") == 0) {
+ if (nd_table[0].model == NULL)
+ nd_table[0].model = "lance";
+ if (strcmp(nd_table[0].model, "lance") == 0) {
lance_init(&nd_table[0], hwdef->le_base, ledma, *ledma_irq, le_reset);
} else if (strcmp(nd_table[0].model, "?") == 0) {
fprintf(stderr, "qemu: Supported NICs: lance\n");
@@ -1325,8 +1326,9 @@
tcx_init(ds, hwdef->tcx_base, phys_ram_base + tcx_offset, tcx_offset,
hwdef->vram_size, graphic_width, graphic_height, graphic_depth);
- if (nd_table[0].model == NULL
- || strcmp(nd_table[0].model, "lance") == 0) {
+ if (nd_table[0].model == NULL)
+ nd_table[0].model = "lance";
+ if (strcmp(nd_table[0].model, "lance") == 0) {
lance_init(&nd_table[0], hwdef->le_base, ledma, *ledma_irq, le_reset);
} else if (strcmp(nd_table[0].model, "?") == 0) {
fprintf(stderr, "qemu: Supported NICs: lance\n");
@@ -1540,8 +1542,9 @@
tcx_init(ds, hwdef->tcx_base, phys_ram_base + tcx_offset, tcx_offset,
hwdef->vram_size, graphic_width, graphic_height, graphic_depth);
- if (nd_table[0].model == NULL
- || strcmp(nd_table[0].model, "lance") == 0) {
+ if (nd_table[0].model == NULL)
+ nd_table[0].model = "lance";
+ if (strcmp(nd_table[0].model, "lance") == 0) {
lance_init(&nd_table[0], hwdef->le_base, ledma, *ledma_irq, le_reset);
} else if (strcmp(nd_table[0].model, "?") == 0) {
fprintf(stderr, "qemu: Supported NICs: lance\n");
reply other threads:[~2009-01-10 14:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LLeyP-0005DF-Mi@cvs.savannah.gnu.org \
--to=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.