]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - mm/sparse.c
hwmon: (nct6775) Fix potential Spectre v1
[mirror_ubuntu-bionic-kernel.git] / mm / sparse.c
index 2609aba121e89cc5c8b656f4ef3539545c434091..f73e6b9aa9fad9449b5efe79ed08e284fc14f1ac 100644 (file)
@@ -661,7 +661,7 @@ void offline_mem_sections(unsigned long start_pfn, unsigned long end_pfn)
        unsigned long pfn;
 
        for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) {
-               unsigned long section_nr = pfn_to_section_nr(start_pfn);
+               unsigned long section_nr = pfn_to_section_nr(pfn);
                struct mem_section *ms;
 
                /*