]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg: Fix assert in iSCSI.
authorZhang Lubo <lubo.zhang@intel.com>
Thu, 1 Dec 2016 06:57:38 +0000 (14:57 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Wed, 7 Dec 2016 08:13:11 +0000 (16:13 +0800)
commit5a066b87bda7a7891a05faf4b1d66136e8a5a7b8
tree19ec64ffc3e390948ee36c24674228c477048eb6
parent854c6b80dc3f1d4a151322b21c5fb6952b159ca9
MdeModulePkg: Fix assert in iSCSI.

The bug is caused by using already freed memory.
If there is already an attempt and execute
'reconnect -r' command, all the ConfigFormEntry structure
will be freed in IScsiDriverBindingStop, but the
mCallbackInfo->Current is not configured as null and
this pointer will be used again in IScsiFormExtractConfig.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
MdeModulePkg/Universal/Network/IScsiDxe/IScsiConfig.c