From: Shannon Zhao <zhaoshenglong@huawei.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: daniel.kiper@oracle.com, shannon.zhao@linaro.org,
xen-devel@lists.xen.org
Subject: Re: [PATCH] efi: Fix booting failure with UEFI on ARM
Date: Tue, 10 Nov 2015 19:11:05 +0800 [thread overview]
Message-ID: <5641D0C9.9090108@huawei.com> (raw)
In-Reply-To: <5641D8EF02000078000B34F0@prv-mh.provo.novell.com>
On 2015/11/10 18:45, Jan Beulich wrote:
>>>> On 10.11.15 at 08:55, <zhaoshenglong@huawei.com> wrote:
>> --- a/xen/common/efi/boot.c
>> +++ b/xen/common/efi/boot.c
>> @@ -636,8 +636,8 @@ static void __init efi_console_set_mode(void)
>> static EFI_GRAPHICS_OUTPUT_PROTOCOL __init *efi_get_gop(void)
>> {
>> EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *mode_info;
>> - EFI_GRAPHICS_OUTPUT_PROTOCOL *gop;
>> - EFI_HANDLE *handles;
>> + EFI_GRAPHICS_OUTPUT_PROTOCOL *gop = NULL;
>> + EFI_HANDLE *handles = NULL;
>
> I can see the issue with handles being left uninitialized, but if you
> think gop also needs initializing, then I would have expected an
> explanation. The change is simple enough to take as is, but in the
> future please explain changes that aren't obviously needed.
>
Yes, the root cause is the uninitialized handles not the uninitialized
gop. It just does what the original codes do before applying commit
9fd08b4.
@@ -738,14 +773,12 @@ void EFIAPI __init noreturn
efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
{
static EFI_GUID __initdata loaded_image_guid = LOADED_IMAGE_PROTOCOL;
- static EFI_GUID __initdata gop_guid =
EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID;
static EFI_GUID __initdata shim_lock_guid = SHIM_LOCK_PROTOCOL_GUID;
EFI_LOADED_IMAGE *loaded_image;
EFI_STATUS status;
unsigned int i, argc;
CHAR16 **argv, *file_name, *cfg_file_name = NULL, *options = NULL;
UINTN map_key, info_size, gop_mode = ~0;
- EFI_HANDLE *handles = NULL;
EFI_SHIM_LOCK_PROTOCOL *shim_lock;
EFI_GRAPHICS_OUTPUT_PROTOCOL *gop = NULL;
If you think it's not proper, I'll fix this.
Thanks,
--
Shannon
next prev parent reply other threads:[~2015-11-10 11:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-10 7:55 [PATCH] efi: Fix booting failure with UEFI on ARM Shannon Zhao
2015-11-10 10:45 ` Jan Beulich
2015-11-10 11:11 ` Shannon Zhao [this message]
2015-11-10 10:50 ` Daniel Kiper
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=5641D0C9.9090108@huawei.com \
--to=zhaoshenglong@huawei.com \
--cc=JBeulich@suse.com \
--cc=daniel.kiper@oracle.com \
--cc=shannon.zhao@linaro.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 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.