]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg/IScsiDxe: Set ExitBootServiceEvent to NULL after close it.
authorJiaxin Wu <jiaxin.wu@intel.com>
Tue, 2 Jan 2018 05:30:44 +0000 (13:30 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Wed, 10 Jan 2018 00:33:34 +0000 (08:33 +0800)
commita37c60b660e7de30a36f63a07a8149ac2fa30277
treecdacb5ea8f2fd9ab80e38c7577936a88a8abe7ce
parentd32159853d4bd37a1f98312b172f3c426019cde2
NetworkPkg/IScsiDxe: Set ExitBootServiceEvent to NULL after close it.

v2:
* Refine the commit log.

There are two place to close the ISCSI ExitBootServiceEvent:
#1.IScsiOnExitBootService(), which is the callback function of
   ExitBootServiceEvent.
#2.IScsiCleanDriverData(), which will be invoked by ISCSI driver
   binding stop().

So, the ExitBootServiceEvent will be closed and freed when exit boot
server is triggered. But it may be closed and freed again in ISCSI driver
binding stop(), which will result in the issue recorded at
https://bugzilla.tianocore.org/show_bug.cgi?id=742.

This patch is to resolve the issue.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
NetworkPkg/IScsiDxe/IScsiMisc.c