Re: [edk2-devel] [PATCH v1 2/2] OvmfPkg/VirtioFsDxe: suppress incorrect gcc warnings

2021-05-14 Thread Laszlo Ersek
On 05/12/21 00:56, Sergei Dmitrouk wrote: > `CreateDirectoryIfCreating` is used only if `PermitCreation` is set. > > `NewNodeIsDirectory` might not set in case of error, but that would lead > to leaving the function before invalid use. > > Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3228

[edk2-devel] [PATCH v1 2/2] OvmfPkg/VirtioFsDxe: suppress incorrect gcc warnings

2021-05-11 Thread Sergei Dmitrouk
`CreateDirectoryIfCreating` is used only if `PermitCreation` is set. `NewNodeIsDirectory` might not set in case of error, but that would lead to leaving the function before invalid use. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3228 Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Jordan Juste