From: "Edgar E. Iglesias" <edgar.iglesias@axis.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Mark McLoughlin <markmc@redhat.com>,
qemu-devel@nongnu.org,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Subject: Re: [Qemu-devel] Re: [PATCH 3/3] cris: fix a segfault if pflash drive not found
Date: Thu, 13 Nov 2008 21:57:00 +0100 [thread overview]
Message-ID: <20081113205700.GC17711@edgar.se.axis.com> (raw)
In-Reply-To: <491C81E6.9070108@codemonkey.ws>
On Thu, Nov 13, 2008 at 01:37:10PM -0600, Anthony Liguori wrote:
> Mark McLoughlin wrote:
>> drive_get_index() returns -1 if a drive isn't found; don't
>> use -1 to index drives_table.
>>
>
> Looks fine to me. Edgar?
Look OK, I'll apply it later tonight.
Thanks
>
> Regards,
>
> Anthony Liguori
>
>> Signed-off-by: Mark McLoughlin <markmc@redhat.com>
>> ---
>> hw/etraxfs.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/hw/etraxfs.c b/hw/etraxfs.c
>> index 4f93cd8..2f6e2ee 100644
>> --- a/hw/etraxfs.c
>> +++ b/hw/etraxfs.c
>> @@ -83,7 +83,7 @@ void bareetraxfs_init (ram_addr_t ram_size, int
>> vga_ram_size,
>> phys_flash = qemu_ram_alloc(FLASH_SIZE);
>> i = drive_get_index(IF_PFLASH, 0, 0);
>> pflash_cfi02_register(0x0, phys_flash,
>> - drives_table[i].bdrv, (64 * 1024),
>> + i != -1 ? drives_table[i].bdrv : NULL, (64 *
>> 1024),
>> FLASH_SIZE >> 16,
>> 1, 2, 0x0000, 0x0000, 0x0000, 0x0000,
>> 0x555, 0x2aa);
>>
>
>
next prev parent reply other threads:[~2008-11-13 20:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-13 16:42 [Qemu-devel] [PATCH 1/3] x86: fix warning without CONFIG_KVM Mark McLoughlin
2008-11-13 16:42 ` [Qemu-devel] [PATCH 2/3] dyngen: fix some warnings about unused functions Mark McLoughlin
2008-11-13 16:42 ` [Qemu-devel] [PATCH 3/3] cris: fix a segfault if pflash drive not found Mark McLoughlin
2008-11-13 19:37 ` [Qemu-devel] " Anthony Liguori
2008-11-13 20:57 ` Edgar E. Iglesias [this message]
2008-11-13 17:10 ` [Qemu-devel] Re: [PATCH 2/3] dyngen: fix some warnings about unused functions Jan Kiszka
2008-11-13 19:39 ` Anthony Liguori
2008-11-14 15:25 ` Mark McLoughlin
2008-11-13 17:09 ` [Qemu-devel] Re: [PATCH 1/3] x86: fix warning without CONFIG_KVM Jan Kiszka
2008-11-13 19:31 ` Anthony Liguori
2008-11-14 3:22 ` Jamie Lokier
2008-11-13 19:38 ` Anthony Liguori
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=20081113205700.GC17711@edgar.se.axis.com \
--to=edgar.iglesias@axis.com \
--cc=anthony@codemonkey.ws \
--cc=edgar.iglesias@gmail.com \
--cc=markmc@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).