]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg: Fix assert issue in iSCSI driver
authorZhang Lubo <lubo.zhang@intel.com>
Mon, 1 Aug 2016 08:33:26 +0000 (16:33 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Thu, 18 Aug 2016 05:54:07 +0000 (13:54 +0800)
commit3cb5b9970fbdf69362d1656f7e89808fc4f2bb2e
tree0e20a46e2c96e477048bccc68092c2c191741dd8
parent79d909849c0e3d6a40989473accfee95e2c3660e
NetworkPkg: Fix assert issue in iSCSI driver

The bug is caused by using already freed memory.
If there is already an attempt and execute
'reconnect -r' command, all the AttemptConfig structure
will be freed, 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: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
NetworkPkg/IScsiDxe/IScsiMisc.c