Skip to content

Commit

Permalink
14366 list_is_vga_only() can't handle empty memlists
Browse files Browse the repository at this point in the history
Reviewed by: Yuri Pankov <ypankov@tintri.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
rmustacc committed Jan 15, 2022
1 parent e0cd43f commit 39c0b5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usr/src/uts/intel/io/pci/pci_boot.c
Expand Up @@ -1051,6 +1051,10 @@ is_vga(struct memlist *elem, enum io_mem io)
static boolean_t
list_is_vga_only(struct memlist *l, enum io_mem io)
{
if (l == NULL) {
return (B_FALSE);
}

do {
if (!is_vga(l, io))
return (B_FALSE);
Expand Down

0 comments on commit 39c0b5e

Please sign in to comment.