Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: f1f672b89871fe23ee9bd237e7863290b94f8591
      
https://github.com/tianocore/edk2/commit/f1f672b89871fe23ee9bd237e7863290b94f8591
  Author: Levi Yun <[email protected]>
  Date:   2025-10-02 (Thu, 02 Oct 2025)

  Changed paths:
    M ArmPkg/Filesystem/SemihostFs/AArch64/SemihostFs.c

  Log Message:
  -----------
  ArmPkg/SemihostFs: fix crash when file open fails

Since the FileFcb’s list entry is not initialized at allocation,
SemihostFs reports the following crash when freeing FileFcb
after failing to obtain the file size in FileOpen():

  ASSERT [SemihostFs] LinkedList.c(75): List->ForwardLink != ((void *) 0)

To fix this, properly initialize the list entry at FCB allocation
and move RemoveListEntry() to FileClose(),
since the FCB entry will only be on the list
when VolumeOpen() or FileOpen() succeeds.

Signed-off-by: Yeoreum Yun <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to