diff options
author | emaste <emaste@FreeBSD.org> | 2014-07-24 14:24:27 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-07-24 14:24:27 +0000 |
commit | 3c9102634ee3452bd839123e65d5f4c1510c84e9 (patch) | |
tree | c4aa7948b002ebab03f646735f276707a1b070f1 /sys/amd64/amd64/machdep.c | |
parent | f8748c4ec388d8aee1b3f4cc77bfad80b74ab826 (diff) | |
download | FreeBSD-src-3c9102634ee3452bd839123e65d5f4c1510c84e9.zip FreeBSD-src-3c9102634ee3452bd839123e65d5f4c1510c84e9.tar.gz |
MFC r258471: Don't abort SMAP processing after an entry of length 0
Length 0 is not special and should just be skipped. This is the same
behaviour as i386.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/amd64/amd64/machdep.c')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 276578e..ab13b6c 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -1344,7 +1344,7 @@ add_smap_entry(struct bios_smap *smap, vm_paddr_t *physmap, int *physmap_idxp) return (1); if (smap->length == 0) - return (0); + return (1); /* * Find insertion point while checking for overlap. Start off by |