]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
efi: Make for_each_efi_memory_desc_in_map() cope with running on Xen
authorJan Beulich <JBeulich@suse.com>
Mon, 15 Aug 2016 15:05:45 +0000 (09:05 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:09:36 +0000 (10:09 +0200)
commit57fea0768c7c7874eeaf59b1ab5011c6cb9251b2
treed6f4680d7ff85b64d6eec87895fe516be03cfb9d
parenta8529888a4bf3043d5a64de80148fda05c034305
efi: Make for_each_efi_memory_desc_in_map() cope with running on Xen

commit d4c4fed08f31f3746000c46cb1b20bed2959547a upstream.

While commit 55f1ea15216 ("efi: Fix for_each_efi_memory_desc_in_map()
for empty memmaps") made an attempt to deal with empty memory maps, it
didn't address the case where the map field never gets set, as is
apparently the case when running under Xen.

Reported-by: <lists@ssl-mail.com>
Tested-by: <lists@ssl-mail.com>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
[ Guard the loop with a NULL check instead of pointer underflow ]
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/efi.h