diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-18 11:58:09 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-02-16 09:46:35 +0200 |
commit | 17f657671500d0975faf35efba082b9716a67e48 (patch) | |
tree | 26034e2437772c12720980ddb5acccfc319d4c2b | |
parent | 9b4d666e10e702eac94d0d0f1ca8abec9d851dc1 (diff) | |
download | illumos-joyent-17f657671500d0975faf35efba082b9716a67e48.tar.gz |
10380 audio: NULL pointer errors
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r-- | usr/src/uts/common/io/audio/impl/audio_ddi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/audio/impl/audio_ddi.c b/usr/src/uts/common/io/audio/impl/audio_ddi.c index e0c8144b70..7acf57da82 100644 --- a/usr/src/uts/common/io/audio/impl/audio_ddi.c +++ b/usr/src/uts/common/io/audio/impl/audio_ddi.c @@ -71,7 +71,7 @@ audio_attach(dev_info_t *dip, ddi_attach_cmd_t cmd) /* look up our properties! */ - if (audio_dev_register(adev) != NULL) { + if (audio_dev_register(adev) != DDI_SUCCESS) { audio_dev_free(adev); return (DDI_FAILURE); } |