nvdimm_e820: Fix braino in size=all SPA hint
The sentinel value for "use the rest of the region," -1, isn't zero modulo PAGE_SIZE. Relax the check to permit the intended special value. X-MFC-With: r353110 Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
b1f22a0083
commit
7bf55415d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353714
@ -138,8 +138,8 @@ nvdimm_e820_create_spas(device_t dev)
|
||||
|
||||
hintaddr = (vm_paddr_t)hintaddrl;
|
||||
hintsize = (vm_size_t)hintsizel;
|
||||
if ((hintaddr & PAGE_MASK) != 0 || (hintsize & PAGE_MASK) != 0)
|
||||
{
|
||||
if ((hintaddr & PAGE_MASK) != 0 ||
|
||||
((hintsize & PAGE_MASK) != 0 && hintsize != HINT_ALL)) {
|
||||
device_printf(dev, "hint.nvdimm_spa.%u addr or size "
|
||||
"not page aligned\n", i);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user