You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
ac66d62da1
When a SATA controller has no Ports Implemented behind it, AHCI mode init returns error even before allocating buffers for RFis, CommandTable, CommandList. So, AHCI de-init expects them to be NULL, else any garbage value for these fields forces the code to do a FreePool on non-allocated memory. Signed-off-by: Sai Talamudupula <sai.kiran.talamudupula@intel.com>