Skip to content
Merged
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
3 changes: 2 additions & 1 deletion OvmfPkg/VirtioRngDxe/VirtioRng.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ VirtioRngGetRNG (
goto FreeBuffer;
}

CurrentTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
CurrentTpl = gBS->RaiseTPL (TPL_NOTIFY);

//
// The Virtio RNG device may return less data than we asked it to, and can
Expand All @@ -201,6 +201,7 @@ VirtioRngGetRNG (
EFI_SUCCESS)
{
Status = EFI_DEVICE_ERROR;
gBS->RestoreTPL (CurrentTpl);
goto UnmapBuffer;
}

Expand Down