]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/proc/vmcore.c
kdump: add is_vmcore_usable() and vmcore_unusable()
[net-next-2.6.git] / fs / proc / vmcore.c
index 4c65ca432d30797d760493b1fd85bb296fdda1b2..cd9ca67f841bd38d6256f14eccfd3fd6d8174522 100644 (file)
@@ -644,7 +644,7 @@ static int __init vmcore_init(void)
        int rc = 0;
 
        /* If elfcorehdr= has been passed in cmdline, then capture the dump.*/
-       if (!(elfcorehdr_addr < ELFCORE_ADDR_MAX))
+       if (!(is_vmcore_usable()))
                return rc;
        rc = parse_crash_elf_headers();
        if (rc) {