summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-26 19:35:31 +0200
committerDan McDonald <danmcd@joyent.com>2019-02-04 13:39:11 -0500
commit6eda379352cafb14ed1d54166fe88b67fbefac4d (patch)
tree6f7f61ca7ace11c9aec50cc5ed351b03a77ff3ee /usr/src
parentf642269fe771b10890afea92038f4531cd50cfd9 (diff)
downloadillumos-gate-6eda379352cafb14ed1d54166fe88b67fbefac4d.tar.gz
10315 acpi: NULL pointer errors
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/acpi/acpidump/osillumostbl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/cmd/acpi/acpidump/osillumostbl.c b/usr/src/cmd/acpi/acpidump/osillumostbl.c
index 2ccde61c9c..26fb8d7577 100644
--- a/usr/src/cmd/acpi/acpidump/osillumostbl.c
+++ b/usr/src/cmd/acpi/acpidump/osillumostbl.c
@@ -444,7 +444,7 @@ OslLoadRsdp(void)
try_bios:
/* Try to get RSDP from BIOS memory */
- if (Gbl_RsdpBase != NULL) {
+ if (Gbl_RsdpBase != 0) {
physaddr = Gbl_RsdpBase;
mapsize = sizeof (ACPI_TABLE_RSDP);
} else {
@@ -658,7 +658,7 @@ OslListBiosTables(void)
}
/* Skip NULL entries in RSDT/XSDT */
- if (TableAddress == NULL) {
+ if (TableAddress == 0) {
continue;
}
@@ -807,7 +807,7 @@ OslGetBiosTable(char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **Table,
/* Skip NULL entries in RSDT/XSDT */
- if (TableAddress == NULL) {
+ if (TableAddress == 0) {
continue;
}
@@ -887,7 +887,7 @@ OslMapTable(ACPI_SIZE Address, char *Signature, ACPI_TABLE_HEADER **Table)
ACPI_TABLE_HEADER *MappedTable;
UINT32 Length;
- if (Address == NULL) {
+ if (Address == 0) {
return (AE_BAD_ADDRESS);
}