summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-19 09:26:18 +0200
committerToomas Soome <tsoome@me.com>2019-04-10 09:23:05 +0300
commit40a733010c7e8c82a55807f59f6e912e51355d2a (patch)
tree39a264d3c8a790f6ae7e516a729e45b75f9349c9
parente59325b74ca0760391c4b4d3acd8d3294ffc521a (diff)
downloadillumos-joyent-40a733010c7e8c82a55807f59f6e912e51355d2a.tar.gz
10664 vmxnet3s: NULL pointer errors
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c b/usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
index bec73524f7..040b8eb364 100644
--- a/usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
+++ b/usr/src/uts/intel/io/vmxnet3s/vmxnet3_utils.c
@@ -156,7 +156,7 @@ error_dma_handle:
ddi_dma_free_handle(&dma->dmaHandle);
error:
dma->buf = NULL;
- dma->bufPA = NULL;
+ dma->bufPA = 0;
dma->bufLen = 0;
return (err);
}
@@ -196,7 +196,7 @@ vmxnet3_free_dma_mem(vmxnet3_dmabuf_t *dma)
ddi_dma_free_handle(&dma->dmaHandle);
dma->buf = NULL;
- dma->bufPA = NULL;
+ dma->bufPA = 0;
dma->bufLen = 0;
}