Re: [edk2-devel] [PATCH] MdeModulePkg XhciPei: Fix dead loop issue in UsbHcFreeMemPool()

2022-08-07 Thread Wu, Hao A
Thanks Star, How about removing the comments that mention 'UsbHcUnlinkMemBlock' (3 occurrences, in UsbHcFreeMemPool() and UsbHcFreeMem()) to avoid possible confusion? Best Regards, Hao Wu > -Original Message- > From: Zeng, Star > Sent: Friday, August 5, 2022 7:44 PM > To:

[edk2-devel] [PATCH] MdeModulePkg XhciPei: Fix dead loop issue in UsbHcFreeMemPool()

2022-08-05 Thread Zeng, Star
Use Block->Next instead of Pool->Head->Next, otherwise the for loop will be not able to come out. It will also match with the UsbHcFreeMemPool() in EhciPei. Cc: Hao A Wu Cc: Ray Ni Cc: Zhikai Sun Signed-off-by: Star Zeng --- MdeModulePkg/Bus/Pci/XhciPei/UsbHcMem.c | 2 +- 1 file changed, 1