From: Alvise Rigo <a.rigo@virtualopensystems.com>
To: qemu-devel@nongnu.org
Cc: rob.herring@linaro.org, tech@virtualopensystems.com,
claudio.fontana@huawei.com,
Alvise Rigo <a.rigo@virtualopensystems.com>,
peter.maydell@linaro.org
Subject: [Qemu-devel] [RFC v2 2/4] hw/arm/virt: find_machine_info: handle NULL value
Date: Fri, 21 Nov 2014 19:07:39 +0100 [thread overview]
Message-ID: <1416593261-13751-3-git-send-email-a.rigo@virtualopensystems.com> (raw)
In-Reply-To: <1416593261-13751-1-git-send-email-a.rigo@virtualopensystems.com>
Signed-off-by: Alvise Rigo <a.rigo@virtualopensystems.com>
---
hw/arm/virt.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index e8d527d..4e7b869 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -151,6 +151,10 @@ static VirtBoardInfo *find_machine_info(const char *cpu)
{
int i;
+ if (!cpu) {
+ return NULL;
+ }
+
for (i = 0; i < ARRAY_SIZE(machines); i++) {
if (strcmp(cpu, machines[i].cpu_model) == 0) {
return &machines[i];
--
2.1.0
next prev parent reply other threads:[~2014-11-24 8:24 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 18:07 [Qemu-devel] [RFC v2 0/4] Add Generic PCI host device update Alvise Rigo
2014-11-21 18:07 ` [Qemu-devel] [RFC v2 1/4] hw/arm/virt: Allow multiple agents to modify dt Alvise Rigo
2014-11-24 11:47 ` Claudio Fontana
2015-01-05 15:36 ` Peter Maydell
2015-01-05 16:14 ` alvise rigo
2015-01-05 16:41 ` Peter Maydell
2015-01-05 17:35 ` alvise rigo
2015-01-05 18:07 ` Peter Maydell
2015-01-06 9:56 ` alvise rigo
2015-01-06 9:18 ` Eric Auger
2015-01-06 9:29 ` alvise rigo
2015-01-06 9:51 ` Peter Maydell
2015-01-06 10:05 ` Eric Auger
2014-11-21 18:07 ` Alvise Rigo [this message]
2015-01-05 15:36 ` [Qemu-devel] [RFC v2 2/4] hw/arm/virt: find_machine_info: handle NULL value Peter Maydell
2015-01-05 16:31 ` alvise rigo
2015-01-05 16:42 ` Peter Maydell
2014-11-21 18:07 ` [Qemu-devel] [RFC v2 3/4] hw/pci-host: Add a generic PCI host controller for virtual platforms Alvise Rigo
2014-11-24 10:34 ` Claudio Fontana
2014-11-24 14:57 ` alvise rigo
2014-11-25 10:20 ` Claudio Fontana
2015-01-05 17:13 ` Alexander Graf
2015-01-06 8:47 ` alvise rigo
2015-01-06 11:18 ` Alexander Graf
[not found] ` <1416593261-13751-5-git-send-email-a.rigo@virtualopensystems.com>
2014-11-24 10:38 ` [Qemu-devel] [RFC v2 4/4] hw/arm/virt: Add generic-pci device support Claudio Fontana
2014-11-24 10:47 ` alvise rigo
2014-11-24 15:50 ` [Qemu-devel] [RFC v2 0/4] Add Generic PCI host device update Claudio Fontana
2014-11-25 10:28 ` alvise rigo
2015-01-12 16:26 ` Claudio Fontana
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=1416593261-13751-3-git-send-email-a.rigo@virtualopensystems.com \
--to=a.rigo@virtualopensystems.com \
--cc=claudio.fontana@huawei.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=rob.herring@linaro.org \
--cc=tech@virtualopensystems.com \
/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.