Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 504a80c1514d824dba8a883373912b0f78e0f0ee
      
https://github.com/tianocore/edk2/commit/504a80c1514d824dba8a883373912b0f78e0f0ee
  Author: Hunter Chang <[email protected]>
  Date:   2025-08-07 (Thu, 07 Aug 2025)

  Changed paths:
    M SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c

  Log Message:
  -----------
  SecurityPkg/Tcg/OpalPasswordDxe: Fix logic for RemoveDevice()

First, If there are multiple devices in DeviceList and are going to
remove the first device in the DeviceList, the DeviceList will be
cleared up with setting to NULL.
This is not the expected behavior, as it should keep the rest of the
devices in the DeviceList. DeviceList should point to the next device,
Dev->Next.

Second, there is a potential infinite while loop if TmpDev->Next not
equal to Dev. TmpDev should point to next device.

Signed-off-by: Hunter Chang <[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