mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-25 22:14:37 +00:00
linux: Remove redundant SwapPT in linux_getrandom()
This commit is contained in:
parent
c0df0291eb
commit
462907828d
@ -3336,10 +3336,7 @@ static ssize_t linux_getrandom(SysFrm *, void *buf,
|
||||
for (size_t i = 0; i < buflen; i++)
|
||||
{
|
||||
random = Random::rand16();
|
||||
{
|
||||
Memory::SwapPT swap(pcb->PageTable);
|
||||
((uint8_t *)pBuf)[i] = uint8_t(random & 0xFF);
|
||||
}
|
||||
((uint8_t *)pBuf)[i] = uint8_t(random & 0xFF);
|
||||
}
|
||||
return buflen;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user