efi_loader: initialize root node first
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 20 May 2020 19:27:29 +0000 (21:27 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 21 May 2020 08:00:17 +0000 (10:00 +0200)
commitc067cef695d8909f2c453eb9fedb718206d906a4
tree4347226bc92f5f8de7c8cb9964e7eb238984eb2c
parent255a47333cc3e430d544fadf419b290213c5b11b
efi_loader: initialize root node first

With commit 16ad946f41d3 ("efi_loader: change setup sequence") the
detection of block device was moved to the start of the initialization
sequence. In the case of virtio devices two handles with the same device
path being created.

The root node handle should be created before anything else.

Reported-by: Ard Biesheuvel <ardb@kernel.org>
Fixes: 16ad946f41d3 ("efi_loader: change setup sequence")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_setup.c