From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>, xen-devel@lists.xen.org
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
ian.jackson@eu.citrix.com, tim@xen.org,
stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH] libxl: arm: do not create /chosen/bootargs in DTB if no cmdline is specified
Date: Fri, 28 Feb 2014 23:18:41 +0800 [thread overview]
Message-ID: <5310A8D1.6010501@linaro.org> (raw)
In-Reply-To: <1393416841.18730.38.camel@kazak.uk.xensource.com>
On 26/02/14 20:14, Ian Campbell wrote:
> On Wed, 2014-02-26 at 12:13 +0000, Ian Campbell wrote:
>> Otherwise we deference a NULL pointer.
>>
>> I saw this while experimenting with libvirt on Xen on ARM, xl already checks
>> that the command line is non NULL and provides "" as a default.
>>
>> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
>> Cc: george.dunlap@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
>
> Typo (extra ">") so Goerge's CC got missed out...
>
>> ---
>> This is a pretty obvious fix and would be nice to have if we are taking any
>> more fixes for other stuff , but otherwise I think we can leave to 4.4.1 quite
>> happily.
>> ---
>> tools/libxl/libxl_arm.c | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
>> index 0a1c8c5..0cfd0cf 100644
>> --- a/tools/libxl/libxl_arm.c
>> +++ b/tools/libxl/libxl_arm.c
>> @@ -164,8 +164,10 @@ static int make_chosen_node(libxl__gc *gc, void *fdt,
>> res = fdt_begin_node(fdt, "chosen");
>> if (res) return res;
>>
>> - res = fdt_property_string(fdt, "bootargs", info->u.pv.cmdline);
>> - if (res) return res;
>> + if (info->u.pv.cmdline) {
>> + res = fdt_property_string(fdt, "bootargs", info->u.pv.cmdline);
>> + if (res) return res;
>> + }
>>
>> res = fdt_end_node(fdt);
>> if (res) return res;
>
>
--
Julien Grall
next prev parent reply other threads:[~2014-02-28 15:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-26 12:13 [PATCH] libxl: arm: do not create /chosen/bootargs in DTB if no cmdline is specified Ian Campbell
2014-02-26 12:14 ` Ian Campbell
2014-02-27 14:39 ` George Dunlap
2014-02-28 15:18 ` Julien Grall [this message]
2014-03-14 15:13 ` Ian Campbell
2014-03-14 17:33 ` Ian Jackson
2014-04-04 15:11 ` Ian Jackson
2014-03-13 10:55 ` Ian Campbell
2014-03-13 12:48 ` Ian Campbell
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=5310A8D1.6010501@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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).