Skip to content
Commit f2333c70 authored by Suman Prakash's avatar Suman Prakash Committed by Hao Wu
Browse files

MdeModulePkg/NvmExpressDxe: Memory leak fix in async code flow



For async commands, the buffer allocated for Prp list is
not getting freed, which will cause memory leak for async
read write command. For example testing async command flow
with custom application to send multiple read write commands
were resulting in decrease of available memory page in memmap,
which eventually resulted in system hang. Hence freeing
AsyncRequest->MapData, AsyncRequest->MapMeta, AsyncRequest->MapPrpList and
AsyncRequest->PrpListHost when async command is completed.

Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: default avatarSuman Prakash <suman.p@samsung.com.com>
Reviewed-by: default avatarHao Wu <hao.a.wu@intel.com>
parent 38b15ebe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment