]> git.proxmox.com Git - mirror_edk2.git/commit
TFTP : tftp fix for full volume case
authorMeenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Mon, 25 Sep 2017 14:35:11 +0000 (20:05 +0530)
committerRuiyu Ni <ruiyu.ni@intel.com>
Tue, 24 Oct 2017 05:48:48 +0000 (13:48 +0800)
commit34cd44d4dea2ac5bba88515ed11beb5e61bf37ea
tree617d27d9d5aff0284e0c1cfe618bf1fafc143de3
parentc13cb4aebf4a27dd056f3a4b36d18646ffccef3b
TFTP : tftp fix for full volume case

Issue :
When storage media is full, tftp was resulting in ASSERT
MdeModulePkg/Core/Dxe/Mem/Page.c, because number of pages
was zero.

Reason:
While doing tftp, function call ShellWriteFile was modifying
FileSize variable. In case of full disk it was coming out to be
Zero.

Fix:
Storage the original filesize in local variable, and use this
variable while freeing the pages.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Udit Kumar <udit.kumar@nxp.com>
Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c