summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-05-29 15:00:24 +0300
committerToomas Soome <tsoome@me.com>2019-07-31 09:57:25 +0300
commit06fcb0bcd6642c350546e3c87bbe20e27c20bff3 (patch)
tree2f92c8ff9b99815a4b33eb646539fd75dbf32726
parent7b64dea37f86f82e3b7fc0f52918a46d5567ac8e (diff)
downloadillumos-joyent-06fcb0bcd6642c350546e3c87bbe20e27c20bff3.tar.gz
11456 mdb: libmlsvc NULL pointer errors
Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/cmd/mdb/common/modules/libmlsvc/smb_ht.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/mdb/common/modules/libmlsvc/smb_ht.c b/usr/src/cmd/mdb/common/modules/libmlsvc/smb_ht.c
index a060d9f0e4..52421264e7 100644
--- a/usr/src/cmd/mdb/common/modules/libmlsvc/smb_ht.c
+++ b/usr/src/cmd/mdb/common/modules/libmlsvc/smb_ht.c
@@ -42,7 +42,7 @@ smb_ht_walk_init(mdb_walk_state_t *wsp)
uintptr_t addr = wsp->walk_addr;
HT_HANDLE *ht;
- if (addr == NULL) {
+ if (addr == (uintptr_t)NULL) {
mdb_printf("require address of an HT_HANDLE\n");
return (WALK_ERR);
}
@@ -63,7 +63,7 @@ smb_ht_walk_init(mdb_walk_state_t *wsp)
}
hw->hw_idx = -1;
- wsp->walk_addr = NULL;
+ wsp->walk_addr = (uintptr_t)NULL;
wsp->walk_data = hw;
return (WALK_NEXT);
@@ -78,7 +78,7 @@ smb_ht_walk_step(mdb_walk_state_t *wsp)
uintptr_t he_addr;
int rv;
- while (wsp->walk_addr == NULL) {
+ while (wsp->walk_addr == (uintptr_t)NULL) {
if (++hw->hw_idx >= hw->hw_handle.ht_table_size)
return (WALK_DONE);
he_addr = (uintptr_t)hw->hw_handle.ht_table +