* [bug report] mm: allow compound zone device pages
@ 2025-01-10 7:04 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2025-01-10 7:04 UTC (permalink / raw)
To: Alistair Popple; +Cc: linux-mm
Hello Alistair Popple,
This is a semi-automatic email about new static checker warnings.
Commit 04cabee2d411 ("mm: allow compound zone device pages") from Jan
7, 2025, leads to the following Smatch complaint:
mm/migrate_device.c:157 migrate_vma_collect_pmd()
warn: variable dereferenced before check 'page' (see line 156)
mm/migrate_device.c
155 page = vm_normal_page(migrate->vma, addr, pte);
156 pgmap = page_pgmap(page);
^^^^
Unchecked dereference
157 if (page && !is_zone_device_page(page) &&
^^^^
Too late
158 !(migrate->flags & MIGRATE_VMA_SELECT_SYSTEM))
159 goto next;
regards,
dan carpenter
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-10 7:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-10 7:04 [bug report] mm: allow compound zone device pages Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox