mirror of https://github.com/acidanthera/audk.git
28092a3938
The two member functions that free the EFI_FILE_PROTOCOL object are Close() and Delete(). Before we create VIRTIO_FS_FILE objects with EFI_FILE_PROTOCOL.Open() later in this patch series, extend each of these "destructor" functions to get rid of the FuseHandle and NodeId resources properly -- in a way that matches each function's own purpose. For the time being, VirtioFsSimpleFileDelete() only gets a reminder about its core task (namely, removing the file), as the needed machinery will become only later. But we can already outline the "task list", and deal with the FuseHandle and NodeId resources. The "task list" of VirtioFsSimpleFileDelete() is different from that of VirtioFsSimpleFileClose(), thus both destructors diverge at this point. Cc: Ard Biesheuvel <ard.biesheuvel@arm.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3097 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20201216211125.19496-16-lersek@redhat.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com> |
||
---|---|---|
.. | ||
DriverBinding.c | ||
FuseFlush.c | ||
FuseForget.c | ||
FuseFsync.c | ||
FuseInit.c | ||
FuseOpenDir.c | ||
FuseRelease.c | ||
Helpers.c | ||
SimpleFsClose.c | ||
SimpleFsDelete.c | ||
SimpleFsFlush.c | ||
SimpleFsGetInfo.c | ||
SimpleFsGetPosition.c | ||
SimpleFsOpen.c | ||
SimpleFsOpenVolume.c | ||
SimpleFsRead.c | ||
SimpleFsSetInfo.c | ||
SimpleFsSetPosition.c | ||
SimpleFsWrite.c | ||
VirtioFsDxe.h | ||
VirtioFsDxe.inf |