Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/proc/kcore.c: Pass a pointer to virt_addr_valid()

The virt_addr_valid() should be passed a pointer, the current
code passing a long unsigned int is just exploiting the
unintentional polymorphism of these calls being implemented
as preprocessor macros.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+1 -1
+1 -1
fs/proc/kcore.c
··· 199 199 ent->addr = (unsigned long)page_to_virt(p); 200 200 ent->size = nr_pages << PAGE_SHIFT; 201 201 202 - if (!virt_addr_valid(ent->addr)) 202 + if (!virt_addr_valid((void *)ent->addr)) 203 203 goto free_out; 204 204 205 205 /* cut not-mapped area. ....from ppc-32 code. */