mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
Return page size as unsigned long
Currently page_size() returns unsigned int value that is after "bitwise not" is promoted to unsigned long value e.g. in uffd.c handle_page_fault. Since the value is unsigned promotion is done with 0 MSB that results in lost of MSB pagefault address bits. So make page_size to return unsigned long to avoid such situation. Signed-off-by: Vladislav Khmelevsky <och95@yandex.ru>
This commit is contained in:
parent
00f8a56b6e
commit
28adebefb7
6 changed files with 10 additions and 10 deletions
|
|
@ -27,7 +27,7 @@ static struct rt_sigframe *sigframe;
|
|||
*/
|
||||
static unsigned __page_size;
|
||||
|
||||
unsigned __attribute((weak)) page_size(void)
|
||||
unsigned long __attribute((weak)) page_size(void)
|
||||
{
|
||||
return __page_size;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue