Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions OvmfPkg/VirtioScsiDxe/VirtioScsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ VirtioScsiPassThru (
VOID *InDataBuffer;
UINTN InDataNumPages;
BOOLEAN OutDataBufferIsMapped;
EFI_TPL CurrentTpl;

//
// Set InDataMapping,OutDataMapping,InDataDeviceAddress and OutDataDeviceAddress to
Expand Down Expand Up @@ -596,6 +597,8 @@ VirtioScsiPassThru (
goto FreeResponseBuffer;
}

CurrentTpl = gBS->RaiseTPL (TPL_NOTIFY);

VirtioPrepare (&Dev->Ring, &Indices);

//
Expand Down Expand Up @@ -664,10 +667,12 @@ VirtioScsiPassThru (
NULL
) != EFI_SUCCESS)
{
gBS->RestoreTPL (CurrentTpl);
Status = ReportHostAdapterError (Packet);
goto UnmapResponseBuffer;
}

gBS->RestoreTPL (CurrentTpl);
Status = ParseResponse (Packet, Response);

//
Expand Down
Loading