summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-18 23:03:09 +0200
committerToomas Soome <tsoome@me.com>2019-04-10 09:16:10 +0300
commit64a6bd963243a20fc11b593b7bec96ea000f8bf6 (patch)
treee3052f7232f3787fef5ae73db5058a713928723f
parentd659c726b2a72b51ac2dc9a7f6878463fc070c87 (diff)
downloadillumos-joyent-64a6bd963243a20fc11b593b7bec96ea000f8bf6.tar.gz
10660 swrand: NULL pointer errors
Reviewed by: Gergő Doma <domag02@gmail.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Jason Lippert <jason@glasspelican.ca> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/common/crypto/io/swrand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/crypto/io/swrand.c b/usr/src/uts/common/crypto/io/swrand.c
index dec74a9d8f..c5e5942398 100644
--- a/usr/src/uts/common/crypto/io/swrand.c
+++ b/usr/src/uts/common/crypto/io/swrand.c
@@ -101,7 +101,7 @@ static uint32_t previous_bytes[HASHSIZE/BYTES_IN_WORD]; /* prev random bytes */
static physmem_entsrc_t entsrc; /* Physical mem as an entropy source */
static timeout_id_t rnd_timeout_id;
static int snum_waiters;
-static crypto_kcf_provider_handle_t swrand_prov_handle = NULL;
+static crypto_kcf_provider_handle_t swrand_prov_handle = 0;
swrand_stats_t swrand_stats;
static int physmem_ent_init(physmem_entsrc_t *);