]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - mm/sparse.c
net: hns3: Add some interface for the support of DCB feature
[mirror_ubuntu-bionic-kernel.git] / mm / sparse.c
index a9783acf2bb9c3caee10ff8cfd3a9228ac73b4a9..83b3bf6461af556698c457627b0bc732725a0300 100644 (file)
@@ -626,7 +626,7 @@ void online_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;
 
                /* onlining code should never touch invalid ranges */