audk/MdeModulePkg/Library/DeviceManagerUiLib
Ard Biesheuvel 13406bdeb5 MdeModulePkg/DeviceManagerUiLib: connect all before creating menu page
The device manager UI library creates a UiApp submenu that contains a
list of network devices in the system. The logic that creates this menu
assumes that all handles have been connected to their drivers, but this
is not guaranteed in the general case: due to the way UiApp is constructed,
this logic runs before the UiApp entrypoint is invoked, which is where
ConnectAll() is normally called to ensure that all existing controllers
are connected to their drivers. Moving this call into DeviceManagerUiLib
is not an option, since it is incorporated into UiApp via NULL library
class resolution, and so it may not be included to begin with.

So work around this by doing an explicit additional ConnectAll() before
populating the pages.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Link: https://edk2.groups.io/g/devel/topic/72879609#57075
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
2020-04-30 07:51:10 +00:00
..
DeviceManager.c MdeModulePkg/DeviceManagerUiLib: connect all before creating menu page 2020-04-30 07:51:10 +00:00
DeviceManager.h MdeModulePkg/DeviceManagerUiLib: connect all before creating menu page 2020-04-30 07:51:10 +00:00
DeviceManagerStrings.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
DeviceManagerUiLib.inf MdeModulePkg/DeviceManagerUiLib: connect all before creating menu page 2020-04-30 07:51:10 +00:00
DeviceManagerUiLib.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
DeviceManagerVfr.Vfr MdeModulePkg: strip trailing whitespace 2019-10-04 11:18:32 +01:00