summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-19 17:27:27 +0200
committerToomas Soome <tsoome@me.com>2019-04-20 00:34:36 +0300
commit92548b6ca1ae8b76e54b19801f96b5f6eb4e836d (patch)
treeabe66efeb941d8b554168997597226e7fcde9245
parent485f90e999c14cf930437352b290676f9e89aa60 (diff)
downloadillumos-joyent-92548b6ca1ae8b76e54b19801f96b5f6eb4e836d.tar.gz
10718 av1394: NULL pointer errors
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/common/io/1394/targets/av1394/av1394_async.c2
-rw-r--r--usr/src/uts/common/io/1394/targets/av1394/av1394_isoch.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/uts/common/io/1394/targets/av1394/av1394_async.c b/usr/src/uts/common/io/1394/targets/av1394/av1394_async.c
index 05356bc926..31b6e33344 100644
--- a/usr/src/uts/common/io/1394/targets/av1394/av1394_async.c
+++ b/usr/src/uts/common/io/1394/targets/av1394/av1394_async.c
@@ -444,7 +444,7 @@ av1394_async_create_minor_node(av1394_inst_t *avp)
ret = ddi_create_minor_node(avp->av_dip, "async",
S_IFCHR, AV1394_ASYNC_INST2MINOR(avp->av_instance),
- DDI_NT_AV_ASYNC, NULL);
+ DDI_NT_AV_ASYNC, 0);
if (ret != DDI_SUCCESS) {
TNF_PROBE_0(av1394_async_create_minor_node_error,
AV1394_TNF_ASYNC_ERROR, "");
diff --git a/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch.c b/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch.c
index c604831c57..b4902b0f55 100644
--- a/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch.c
+++ b/usr/src/uts/common/io/1394/targets/av1394/av1394_isoch.c
@@ -231,7 +231,7 @@ av1394_isoch_write(av1394_inst_t *avp, struct uio *uiop)
/*ARGSUSED*/
int
av1394_isoch_ioctl(av1394_inst_t *avp, int cmd, intptr_t arg, int mode,
- int *rvalp)
+ int *rvalp)
{
int ret = EINVAL;
@@ -274,7 +274,7 @@ av1394_isoch_ioctl(av1394_inst_t *avp, int cmd, intptr_t arg, int mode,
/*ARGSUSED*/
int
av1394_isoch_devmap(av1394_inst_t *avp, devmap_cookie_t dhp, offset_t off,
- size_t len, size_t *maplen, uint_t model)
+ size_t len, size_t *maplen, uint_t model)
{
av1394_isoch_seg_t *isp;
@@ -318,7 +318,7 @@ av1394_isoch_create_minor_node(av1394_inst_t *avp)
ret = ddi_create_minor_node(avp->av_dip, "isoch",
S_IFCHR, AV1394_ISOCH_INST2MINOR(avp->av_instance),
- DDI_NT_AV_ISOCH, NULL);
+ DDI_NT_AV_ISOCH, 0);
if (ret != DDI_SUCCESS) {
TNF_PROBE_0(av1394_isoch_create_minor_node_error,
AV1394_TNF_ISOCH_ERROR, "");
@@ -455,7 +455,7 @@ av1394_isoch_autorecv_init(av1394_inst_t *avp, av1394_ic_t **icpp)
*/
static int
av1394_isoch_autoxmit_init(av1394_inst_t *avp, av1394_ic_t **icpp,
- struct uio *uiop)
+ struct uio *uiop)
{
av1394_isoch_autoxmit_t *axp = &avp->av_i.i_autoxmit;
iec61883_isoch_init_t ii;