mirror of https://github.com/acidanthera/audk.git
7537258100
The HTTP Boot driver have some UEFI driver model problems which will make the code ASSERT when it's disconnected. First, the driver opens the HttpSb protocol BY_CHILD without BY_DRIVER attribute. So the driver binding stop won't be called when HTTP driver is disconnected, so a child handle is left and made HTTP driver binding stop function goes into error. This patch remove this unnecessary OpenProtocol and only unload the HII from when both the IP4 and IP6 stack have been stopped completely. The second issue is the HTTP boot driver always use the driver's image handle as it's driver binding handle, it's not correct. HTTP Boot driver provides 2 separate driver binding protocols from IP4 and IP6 stack, so it has 2 driver binding handle. So this patch fix the code to use correct driver binding handle when create/open a HTTP child handle. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com> |
||
---|---|---|
.. | ||
HttpBootClient.c | ||
HttpBootClient.h | ||
HttpBootComponentName.c | ||
HttpBootComponentName.h | ||
HttpBootConfig.c | ||
HttpBootConfig.h | ||
HttpBootConfigNVDataStruc.h | ||
HttpBootConfigStrings.uni | ||
HttpBootConfigVfr.vfr | ||
HttpBootDhcp4.c | ||
HttpBootDhcp4.h | ||
HttpBootDhcp6.c | ||
HttpBootDhcp6.h | ||
HttpBootDxe.c | ||
HttpBootDxe.h | ||
HttpBootDxe.inf | ||
HttpBootDxe.uni | ||
HttpBootDxeExtra.uni | ||
HttpBootImpl.c | ||
HttpBootImpl.h | ||
HttpBootSupport.c | ||
HttpBootSupport.h |